mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
preserve spaces in text blocks in svg export (#1587)
This commit is contained in:
parent
9ec43d2626
commit
ece631b430
1 changed files with 1 additions and 0 deletions
|
@ -485,6 +485,7 @@ export function renderElementToSvg(
|
|||
text.setAttribute("font-size", fontSize);
|
||||
text.setAttribute("fill", element.strokeColor);
|
||||
text.setAttribute("text-anchor", textAnchor);
|
||||
text.setAttribute("style", "white-space: pre;");
|
||||
node.appendChild(text);
|
||||
}
|
||||
svgRoot.appendChild(node);
|
||||
|
|
Loading…
Add table
Reference in a new issue