mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Remove spurious spaces at the end of lines
This commit is contained in:
parent
4f7a5f8c3e
commit
08182ead14
@ -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:
|
||||
|
@ -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 ---.)
|
||||
|
Loading…
Reference in New Issue
Block a user