mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
[#954] revert
This commit is contained in:
parent
6e069a939f
commit
07d79fec3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue