From 0fc1b8d397dab56e47cc1a91e5af016d7e77232a Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 23 Jul 2002 09:19:58 +0000 Subject: [PATCH] More efficient R.E.. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4757 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 4 ++++ lib/scripts/lyxpreview2ppm.sh | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 8aa516f242..08c14db0b3 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2002-07-18 Angus Leeming + + * scripts/lyxpreview2ppm.sh: more efficient RE. + 2002-07-22 Herbert Voss * scripts/convertDefault.sh: defines a converter which is used diff --git a/lib/scripts/lyxpreview2ppm.sh b/lib/scripts/lyxpreview2ppm.sh index 076a8807b8..52f9c4556f 100644 --- a/lib/scripts/lyxpreview2ppm.sh +++ b/lib/scripts/lyxpreview2ppm.sh @@ -60,7 +60,8 @@ if [ ${STATUS} -ne 0 ]; then # LaTeX failed. # preview.sty has known problems with the showlabels option, # so remove it and try again. - sed -e "/^[\]usepackage\(.*\){preview}/s/,showlabels//" \ + # This "fix" should be removed once preview-latex 0.73 is released. + sed -e "/^[\]usepackage/,/{preview}$/s/,showlabels//" \ < ${TEXFILE} > .${TEXFILE} cmp -s ${TEXFILE} .${TEXFILE} STATUS=$?