I need to show a inside a text element in SVG and try to use xml:preserve-whitespace which works but mix format on save modifies the output because it adds a space before and after (on a different line).
def tile(assigns) do
~H"""
<svg
viewBox="0 0 100 100"
width="100%"
fill="grey"
>
<rect
width="98"
height="98"
x="1"
y="1"
rx="2"
ry="2"
fill="ivory"
stroke="darkolivegreen"
stroke-width="1"
>
</rect>
<text
x="49"
y="70"
text-anchor="middle"
font-size="65"
stroke="brown"
fill="brown"
>
{@letter}
</text>
<text x="71" y="87" font-size="20" stroke="darkblue" fill="darkblue">{@score}</text>
</svg>
"""
end
Is there a way round this?






















