fix subcaption text

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6672 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-01 14:48:13 +00:00
parent 82d3d4dff6
commit bf0ae39d7d
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-04-01 John Levon <levon@movementarian.org>
* lyx2lyx/lyxconvert_218.py: fix reading of subcaption texts
2003-03-29 John Levon <levon@movementarian.org>
* images/psnfss1.xpm:

View File

@ -403,9 +403,13 @@ def remove_figinset(lines):
else:
display = "color"
subcaptionText = get_value(lines, "subcaption", i+1, j)
subcaptionText = ""
subcaptionLine = find_token(lines, "subcaption", i+1, j)
if subcaptionLine != -1:
subcaptionText = lines[subcaptionLine][11:]
if subcaptionText != "":
subcaptionText = '"'+subcaptionText+'"'
k = find_token(lines, "subfigure", i+1,j)
if k == -1:
subcaption = 0