This commit is contained in:
Gabriel Van Zandycke 2025-03-22 10:52:07 +01:00
parent 6e069a939f
commit 07d79fec3f

View file

@ -19,7 +19,7 @@ pub fn with_new_lines(txt: String) -> String {
pub fn fix_newlines(txt: &str) -> String {
if txt.contains(NEWLINE_ESCAPE_CHAR) {
(*NEWLINE_REGEX)
.replace_all(txt.replace(LINE_SEPARATOR, "\n").as_str(), "")
.replace_all(txt.replace(LINE_SEPARATOR, " ").as_str(), "")
.to_string()
} else {
txt.to_string()