bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SVG <tspan> with leading/trailing spaces should use non-break spaces


From: Ophir Lifshitz
Subject: SVG <tspan> with leading/trailing spaces should use non-break spaces
Date: Mon, 2 Nov 2015 19:27:52 -0500

Hello all,

Here is the MWE:

$ echo '\version "2.18.2" { \tempo "Foo" 4 = 20 b }' | lilypond
-dbackend=svg -o foo -

It seems the easiest way to fix this is to render <tspan> elements with
leading or trailing spaces converted to non-break spaces:

Incorrect: <tspan> = 20</tspan>
Correct: <tspan>&nbsp;= 20</tspan>

See attached screenshots.

Thanks,
Ophir

Attachment: correct.png
Description: PNG image

Attachment: incorrect.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]