mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Revert unintentional commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27059 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
87f291c706
commit
d6a0a94883
@ -2133,13 +2133,13 @@ def convert_subfig(document):
|
|||||||
continue
|
continue
|
||||||
l = find_token(document.body, '\tsubcaptionText', i, endInset)
|
l = find_token(document.body, '\tsubcaptionText', i, endInset)
|
||||||
if l == -1:
|
if l == -1:
|
||||||
caption = ""
|
document.warning("Malformed lyx document: Can't find subcaptionText!")
|
||||||
else:
|
i = endInset
|
||||||
|
continue
|
||||||
caption = document.body[l][16:].strip('"')
|
caption = document.body[l][16:].strip('"')
|
||||||
del document.body[l]
|
del document.body[l]
|
||||||
addedLine = -1
|
|
||||||
del document.body[k]
|
del document.body[k]
|
||||||
addedLines -= 1
|
addedLines = -2
|
||||||
subst = ['\\begin_inset Float figure', 'wide false', 'sideways false',
|
subst = ['\\begin_inset Float figure', 'wide false', 'sideways false',
|
||||||
'status open', '', '\\begin_layout Plain Layout', '\\begin_inset Caption',
|
'status open', '', '\\begin_layout Plain Layout', '\\begin_inset Caption',
|
||||||
'', '\\begin_layout Plain Layout'] + latex2lyx(caption) + \
|
'', '\\begin_layout Plain Layout'] + latex2lyx(caption) + \
|
||||||
|
Loading…
Reference in New Issue
Block a user