mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* lib/lyx2lyx/lyx_1_6.py:
- fix error in convert_subfig triggered by the User Guide. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23792 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5f51e1c9af
commit
e14f384a2c
@ -1258,15 +1258,15 @@ def convert_subfig(document):
|
||||
i = i + 1
|
||||
continue
|
||||
l = find_token(document.body, '\tsubcaptionText', i, j)
|
||||
caption = get_value(document.body, '\tsubcaptionText', i, j).strip('"')
|
||||
caption = document.body[l][16:].strip('"')
|
||||
savestr = document.body[i]
|
||||
del document.body[l]
|
||||
del document.body[k]
|
||||
document.body[i] = '\\begin_inset Float figure\nwide false\nsideways false\n' \
|
||||
'status open\n\n\\begin_layout PlainLayout\n\\begin_inset Caption\n\n\\begin_layout PlainLayout\n' \
|
||||
+ caption + '\n\\end_layout\n\n\\end_inset\n\n\\end_layout\n\n\\begin_layout PlainLayout\n' + savestr
|
||||
savestr = document.body[j]
|
||||
document.body[j] = '\n\\end_layout\n\n\\end_inset\n' + savestr
|
||||
del document.body[k]
|
||||
del document.body[l]
|
||||
|
||||
|
||||
def revert_subfig(document):
|
||||
|
Loading…
Reference in New Issue
Block a user