Compare commits
2 Commits
master
...
zsviczian-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3c6dc4fd6d | ||
![]() |
e9ab51c30e |
@ -461,7 +461,7 @@ export const wrapText = (text: string, font: FontString, maxWidth: number) => {
|
||||
|
||||
const push = (str: string) => {
|
||||
if (str.trim()) {
|
||||
lines.push(str);
|
||||
lines.push(str.trim());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1173,7 +1173,7 @@ describe("textWysiwyg", () => {
|
||||
);
|
||||
|
||||
expect((h.elements[1] as ExcalidrawTextElementWithContainer).text).toBe(
|
||||
"Online \nwhitebo\nard \ncollabo\nration \nmade \neasy",
|
||||
"Online\nwhitebo\nard\ncollabo\nration\nmade\neasy",
|
||||
);
|
||||
fireEvent.contextMenu(GlobalTestState.interactiveCanvas, {
|
||||
button: 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user