newline and indents between tspan confuses inkscape while having xml:space="preserve"
Steps to reproduce:
- Inkscape-fe3e306-x86_64.AppImage bUG.svg --export-type="png"
What happened?
What should have happened?
Inkscape Version and Operating System:
- Inkscape Version: Inkscape 1.0beta1 (fe3e306, 2019-09-17)
- Operating System: Ubuntu 18.04
Problematic part of the file
I think it is the newline and indentation which causes this issue, maybe because in combination with xml:space="preserve" (didn't try).
<text id="text645" x="164.52" xml:space="preserve" y="12.9">
<tspan id="tspan641" x="164.52" y="12.9" sodipodi:role="line">Give atoms initial positions <tspan id="tspan1434" font-family="Times New Roman, Liberation Serif" font-weight="bold">r</tspan><tspan id="tspan639" baseline-shift="sub" font-size="65%">i</tspan>(t=0),</tspan>
<tspan id="tspan643" x="164.52" y="27.01" sodipodi:role="line"><tspan id="tspan1430" font-family="Times New Roman, Liberation Serif" font-weight="bold">v</tspan><tspan id="tspan1432" baseline-shift="sub" font-size="65%">i</tspan>(t=0)=0; choose adequate ∆t</tspan></text>
<text id="text657" x="162.59" xml:space="preserve" y="61.96">
<tspan id="tspan655" x="162.59" y="61.96">Get forces <tspan id="tspan1436" font-family="Times New Roman, Liberation Serif" font-weight="bold">F</tspan><tspan id="tspan1442" baseline-shift="sub" font-size="65%">i</tspan>=-<tspan id="tspan1438" font-family="Times New Roman, Liberation Serif" font-weight="bold">∇</tspan>V(rj) and a<tspan id="tspan1446" baseline-shift="sub" font-size="65%">i</tspan>=<tspan id="tspan1440" font-family="Times New Roman, Liberation Serif" font-weight="bold">F</tspan><tspan id="tspan1444" baseline-shift="sub" font-size="65%">i</tspan>/m</tspan></text>
<text id="text677" x="164.18" xml:space="preserve" y="98.19">
<tspan id="tspan659" x="164.18" y="98.19" sodipodi:role="line">Move atoms (simplified algorithm)</tspan>
<tspan id="tspan667" x="164.18" y="112.25" sodipodi:role="line"><tspan font-weight="bold">r</tspan><tspan id="tspan661" baseline-shift="sub" font-size="65%">i</tspan>(t+∆t)=<tspan font-weight="bold">r</tspan><tspan id="tspan663" baseline-shift="sub" font-size="65%">i</tspan>(t)+<tspan font-weight="bold">v</tspan>(t)∆t+<tspan font-weight="bold">a</tspan><tspan id="tspan665" baseline-shift="sub" font-size="65%">i</tspan>(t)·∆t²/2, update</tspan>
<tspan id="tspan675" x="164.18" y="126.32" sodipodi:role="line">velocities <tspan font-weight="bold">v</tspan><tspan id="tspan669" baseline-shift="sub" font-size="65%">i</tspan>(t+∆t) =<tspan font-weight="bold">v</tspan><tspan id="tspan671" baseline-shift="sub" font-size="65%">i</tspan>(t)+<tspan font-weight="bold">a</tspan><tspan id="tspan673" baseline-shift="sub" font-size="65%">i</tspan>(t)·∆t</tspan></text>
<text id="text681" x="164.05" xml:space="preserve" y="160.99"><tspan id="tspan679" x="164.05" y="160.99">Move time forward, t=t+∆t</tspan></text>
<text id="text685" x="163.96" xml:space="preserve" y="194.96"><tspan id="tspan683" x="163.96" y="194.96">Repeat as long as you need</tspan></text>
Copyright
Authors: David Holec, Johannes Kalliauer
Source: https://commons.wikimedia.org/wiki/File:Holec2016AtomisticMaterialsModellingP19.svg

