commit 4540e6c2efa1853c3abe9fc4811301570400a954 Author: Richard Heck <rgh...@lyx.org> Date: Sat Mar 22 20:19:17 2014 -0400
Patch from Enrico fixing a problem with the lyxpak.py script when "Add Bibliography to TOC" is used. Fixes #9044. diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py index f3b8078..ed4f206 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):