mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Replace newlines with linebreaks when importing without HTML
https://forums.ankiweb.net/t/line-breaks-are-removed-when-importing-csv-on-linux/26451
This commit is contained in:
parent
0be9ee8dcc
commit
c923553a53
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ fn stringify_fn(is_html: bool) -> fn(&str) -> String {
|
||||||
if is_html {
|
if is_html {
|
||||||
ToString::to_string
|
ToString::to_string
|
||||||
} else {
|
} else {
|
||||||
htmlescape::encode_minimal
|
|s| htmlescape::encode_minimal(s).replace('\n', "<br>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue