mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 13:26:56 -05:00
strip out \r on export
(private post) https://anki.tenderapp.com/discussions/ankidesktop/42315-bug-report-exporting-selected-cards-in-browser-issue
This commit is contained in:
parent
8bac28470f
commit
c4ead8ad28
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ class Exporter:
|
|||
# fixme: we should probably quote fields with newlines
|
||||
# instead of converting them to spaces
|
||||
text = text.replace("\n", " ")
|
||||
text = text.replace("\r", "")
|
||||
text = text.replace("\t", " " * 8)
|
||||
text = re.sub("(?i)<style>.*?</style>", "", text)
|
||||
text = re.sub(r"\[\[type:[^]]+\]\]", "", text)
|
||||
|
|
|
|||
Loading…
Reference in a new issue