Fix text breaks

This commit is contained in:
Steve Ruiz 2021-11-18 08:25:47 +00:00
parent 44b31c7a9c
commit d1b37b7997

View file

@ -911,10 +911,9 @@ export class TLDR {
/* -------------------------------------------------- */ /* -------------------------------------------------- */
static fixNewLines = /\r?\n|\r/g static fixNewLines = /\r?\n|\r/g
static fixSpaces = / /g
static normalizeText(text: string) { static normalizeText(text: string) {
return text.replace(TLDR.fixNewLines, '\n').replace(TLDR.fixSpaces, '\u00a0') return text.replace(TLDR.fixNewLines, '\n')
} }
/* -------------------------------------------------- */ /* -------------------------------------------------- */