mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* lib/lyx2lyx/lyx_1_5.py (revert_unicode):
- reintroduce \n's accidentally removed in revision 19145 (fixes bug 4046) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19153 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
db8a268476
commit
586a07709f
@ -1900,7 +1900,7 @@ implemented.'''
|
||||
spec_chars = read_unicodesymbols()
|
||||
|
||||
# Define strings to start and end ERT and math insets
|
||||
ert_intro='\n\n\\begin_inset ERT\nstatus collapsed\n\\begin_layout %s\n\\backslash' % document.default_layout
|
||||
ert_intro='\n\n\\begin_inset ERT\nstatus collapsed\n\\begin_layout %s\n\\backslash\n' % document.default_layout
|
||||
ert_outro='\n\\end_layout\n\n\\end_inset\n'
|
||||
math_intro='\n\\begin_inset Formula $'
|
||||
math_outro='$\n\\end_inset'
|
||||
@ -1978,7 +1978,7 @@ implemented.'''
|
||||
if command[2:12]=='ensuremath':
|
||||
if in_ert:
|
||||
# math in ERT
|
||||
command = command.replace('\\\\ensuremath{\\\\', '$\n\\backslash')
|
||||
command = command.replace('\\\\ensuremath{\\\\', '$\n\\backslash\n')
|
||||
command = command.replace('}', '$\n')
|
||||
elif not in_math:
|
||||
# add a math inset with the replacement character
|
||||
@ -1998,7 +1998,7 @@ implemented.'''
|
||||
command = command.replace('\\\\', ert_intro)
|
||||
command = command + ert_outro
|
||||
else:
|
||||
command = command.replace('\\\\', '\n\\backslash')
|
||||
command = command.replace('\\\\', '\n\\backslash\n')
|
||||
last_char = '' # indicate that the character should not be removed
|
||||
mod_line += command
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user