diff --git a/anki/exporting.py b/anki/exporting.py
index 93a7018b8..d959f0fb7 100644
--- a/anki/exporting.py
+++ b/anki/exporting.py
@@ -21,11 +21,13 @@ class Exporter(object):
def escapeText(self, text):
"Escape newlines, tabs, CSS and quotechar."
- text = text.replace("\n", "
")
+ # fixme: we should probably quote fields with newlines
+ # instead of converting them to spaces
+ text = text.replace("\n", " ")
text = text.replace("\t", " " * 8)
text = re.sub("(?i)", "", text)
if "\"" in text:
- text = "\"" + text.replace("\"", "\"\"") + "\""
+ text = "\"" + text.replace("\"", "\"\"") + "\""
return text
def cardIds(self):