mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
* lib/lyx2lyx/lyx_1_6.py:
- fix convert_spaceinset routine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23794 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
824ac5f2c8
commit
66afc03a54
@ -1391,13 +1391,10 @@ def remove_extra_embedded_files(document):
|
||||
|
||||
def convert_spaceinset(document):
|
||||
" Convert '\\InsetSpace foo' to '\\begin_inset Space foo\n\\end_inset' "
|
||||
i = 0
|
||||
while True:
|
||||
i = find_token(document.body, "\\InsetSpace", i)
|
||||
if i == -1:
|
||||
return
|
||||
document.body[i] = document.body[i].replace('\\InsetSpace', '\\begin_inset Space')
|
||||
document.body[i] = document.body[i] + "\n\\end_inset"
|
||||
for i in range(len(document.body)):
|
||||
if re.search(r'\InsetSpace', document.body[i]):
|
||||
document.body[i] = document.body[i].replace('\\InsetSpace', '\n\\begin_inset Space')
|
||||
document.body[i] = document.body[i] + "\n\\end_inset"
|
||||
|
||||
|
||||
def revert_spaceinset(document):
|
||||
|
Loading…
Reference in New Issue
Block a user