From bf0ae39d7d18803c412f79aeb0ab85bbaba905c7 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 1 Apr 2003 14:48:13 +0000 Subject: [PATCH] fix subcaption text git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6672 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 4 ++++ lib/lyx2lyx/lyxconvert_218.py | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 9e8ad1c53a..afc0269b41 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-04-01 John Levon + + * lyx2lyx/lyxconvert_218.py: fix reading of subcaption texts + 2003-03-29 John Levon * images/psnfss1.xpm: diff --git a/lib/lyx2lyx/lyxconvert_218.py b/lib/lyx2lyx/lyxconvert_218.py index b99292bc2e..9b983d2d32 100644 --- a/lib/lyx2lyx/lyxconvert_218.py +++ b/lib/lyx2lyx/lyxconvert_218.py @@ -403,9 +403,13 @@ def remove_figinset(lines): else: display = "color" - subcaptionText = get_value(lines, "subcaption", i+1, j) - if subcaptionText != "": - subcaptionText = '"'+subcaptionText+'"' + 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 -- 2.39.2