Damien Elmes 2019-06-10 09:41:29 +10:00
parent 47478e584f
commit c7201b0c3a

View file

@ -945,7 +945,7 @@ class EditorWebView(AnkiWebView):
# if there's more than one consecutive space, # if there's more than one consecutive space,
# use non-breaking spaces for the second one on # use non-breaking spaces for the second one on
def repl(match): def repl(match):
return " " + match.group(1).replace(" ", " ") return match.group(1).replace(" ", " ") + " "
txt = re.sub(" ( +)", repl, txt) txt = re.sub(" ( +)", repl, txt)
return txt return txt