[Sync] Kazimir quote fix improved: working with empty tail
This commit is contained in:
1 parent
a034254cbe
commit
90aad8a205
1 file changed
+5
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user