mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
solve missing escape of ' (fixes #1144)
This commit is contained in:
parent
e3a7d1a9e3
commit
c7772794aa
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Exporter:
|
|||
text = text.replace("\t", " " * 8)
|
||||
text = re.sub("(?i)<style>.*?</style>", "", text)
|
||||
text = re.sub(r"\[\[type:[^]]+\]\]", "", text)
|
||||
if '"' in text:
|
||||
if '"' in text or "'" in text:
|
||||
text = '"' + text.replace('"', '""') + '"'
|
||||
return text
|
||||
|
||||
|
|
Loading…
Reference in a new issue