textLength attribute of tspan not working

  • open Inkscape
  • open file have content like this
<svg viewBox="0 0 240 40" width="400" height="200" xmlns="http://www.w3.org/2000/svg">
  <style>
    text  { font: italic 12px serif; }
    tspan { font: bold 10px sans-serif; fill: red; }
  </style>
  <text x="10" y="30" class="small">
    You are
    <tspan textLength="30">not yet not yet not yet not yet not yet</tspan>
    <tspan textLength="30" lengthAdjust="spacingAndGlyphs">not yet not yet not yet not yet not yet</tspan>
    a banana!
  </text>
  <text x="10" y="60" class="small" textLength="30">
    You are not yet not yet not yet not yet not yet a banana!
  </text>
</svg>

What happened?

tspan have textLength seen be display wrong image

What should have happened?

expect it display like this image

Inkscape Version and Operating System:

  • Inkscape Version: 0.92, 1.2
  • Operating System: Linux
  • Operating System version: 18