mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
handle trailing whitespace on lines
This commit is contained in:
@@ -129,7 +129,7 @@ function createFormattedText(width, g, structuredText, addBackground = false) {
|
|||||||
if (lastSpaceIndex > -1) {
|
if (lastSpaceIndex > -1) {
|
||||||
i = prevIndex + lastSpaceIndex + 1;
|
i = prevIndex + lastSpaceIndex + 1;
|
||||||
}
|
}
|
||||||
linesUnderWidth.push(fullStr.slice(prevIndex, i));
|
linesUnderWidth.push(fullStr.slice(prevIndex, i).trim());
|
||||||
prevIndex = i;
|
prevIndex = i;
|
||||||
tempStr = null;
|
tempStr = null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user