mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-06 00:56:58 +02:00
Update textElement.ts
tim spaces at the end of fragments to improve center and right alignment.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user