From: Richard Heck Date: Sun, 23 Mar 2014 00:19:17 +0000 (-0400) Subject: Patch from Enrico fixing a problem with the lyxpak.py script when X-Git-Tag: 2.1.1~90^2~26 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1c637181114bab913727ee922db2ac64d9acf7e5;p=features.git Patch from Enrico fixing a problem with the lyxpak.py script when "Add Bibliography to TOC" is used. Fixes #9044. (cherry picked from commit 1fe2910774b5f1d673e3f85349c8d360023214db) --- diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py index f3b8078be3..ed4f20666d 100755 --- a/lib/scripts/lyxpak.py +++ b/lib/scripts/lyxpak.py @@ -145,6 +145,8 @@ def gather_files(curfile, incfiles, lyx2lyx): match = re_options.match(lines[i]) if match: file = match.group(3).strip('"') + if file.startswith("bibtotoc,"): + file = file[9:] if not os.path.isabs(file): file = os.path.join(curdir, file + '.bst') if os.path.exists(file):