Remove spurious spaces at the end of lines

This commit is contained in:
José Matos 2018-04-28 18:31:31 +01:00
parent 4f7a5f8c3e
commit 08182ead14
2 changed files with 3 additions and 3 deletions

View File

@ -667,7 +667,7 @@ def convert_dashes(document):
# remove ligature breaks between dashes
i = 0
while True:
i = find_substring(document.body,
i = find_substring(document.body,
r"-\SpecialChar \textcompwordmark{}", i+1)
if i == -1:
break
@ -1293,7 +1293,7 @@ def revert_colorbox(document):
if framecolor == "black" and backcolor == "none": # default values
i += 15 # skip box option lines
continue
# Emulate non-default colours with LaTeX code:
einset = find_end_of_inset(document.body, i)
if einset == -1:

View File

@ -1798,7 +1798,7 @@ def convert_dashligatures(document):
['% Added by lyx2lyx',
r'\renewcommand{\textendash}{--}',
r'\renewcommand{\textemdash}{---}']) or None
if use_dash_ligatures is None:
# Look for dashes (Documents by LyX 2.1 or older have "\twohyphens\n"
# or "\threehyphens\n" as interim representation for -- an ---.)