kopia lustrzana https://github.com/Tldraw/Tldraw
Fix text breaks
rodzic
44b31c7a9c
commit
d1b37b7997
|
@ -911,10 +911,9 @@ export class TLDR {
|
|||
/* -------------------------------------------------- */
|
||||
|
||||
static fixNewLines = /\r?\n|\r/g
|
||||
static fixSpaces = / /g
|
||||
|
||||
static normalizeText(text: string) {
|
||||
return text.replace(TLDR.fixNewLines, '\n').replace(TLDR.fixSpaces, '\u00a0')
|
||||
return text.replace(TLDR.fixNewLines, '\n')
|
||||
}
|
||||
|
||||
/* -------------------------------------------------- */
|
||||
|
|
Ładowanie…
Reference in New Issue