[Sync] Kazimir quote fix improved: working with empty tail

This commit is contained in:
Roman Timashev committed 2017-10-16 03:16:48 +03:00
1 parent a034254cbe
commit 90aad8a205
1 file changed
+5 -1
+5 -1
View File
@@ -61,7 +61,11 @@ def fix_links_quotes(tree):
a.getparent().text = a.getparent().text + quote[0]
# Move last quote out of A to the suffix
a.tail = quote[1] + a.tail
if a.tail:
a.tail = quote[1] + a.tail
else:
a.tail = quote[1]
return tree