]> git.lyx.org Git - lyx.git/commitdiff
Patch from Enrico fixing a problem with the lyxpak.py script when
authorRichard Heck <rgheck@lyx.org>
Sun, 23 Mar 2014 00:19:17 +0000 (20:19 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 21 Apr 2014 15:51:58 +0000 (11:51 -0400)
"Add Bibliography to TOC" is used. Fixes #9044.

lib/scripts/lyxpak.py

index f3b8078be3a74a425aa92b70a7174c7458982f2e..ed4f20666d5f52a2911d3fb76fc4cc10ad6fd1f6 100755 (executable)
@@ -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):