diff --git a/CONTRIBUTORS b/CONTRIBUTORS index fca2aa1b0..5546ac893 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -77,6 +77,7 @@ Kerrick Staley Maksim Abramchuk Benjamin Kulnik Shaun Ren +Ryan Greenblatt ******************** diff --git a/pylib/anki/exporting.py b/pylib/anki/exporting.py index 3034c7fd1..9b5f15986 100644 --- a/pylib/anki/exporting.py +++ b/pylib/anki/exporting.py @@ -65,7 +65,7 @@ class Exporter: text = text.replace("\t", " " * 8) text = re.sub("(?i)", "", text) text = re.sub(r"\[\[type:[^]]+\]\]", "", text) - if '"' in text: + if '"' in text or "'" in text: text = '"' + text.replace('"', '""') + '"' return text