diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 2ed2efad0..e5541bb53 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -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)", "", text) text = re.sub(r"\[\[type:[^]]+\]\]", "", text)