]> git.lyx.org Git - features.git/commitdiff
tex2lyx: normalize bib and bst paths
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 9 Feb 2018 12:23:50 +0000 (13:23 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 9 Feb 2018 17:57:53 +0000 (18:57 +0100)
Fixes: #7637
(cherry picked from commit 3cc98a9bf6ed506d04b502863d6424d36cb778b5)

src/tex2lyx/text.cpp

index 5330c624cf64fa5b3cb15553316f00cf2d91aab1..56931ddc5594c9502cc995f0e4e0449f2954e7b0 100644 (file)
@@ -4410,7 +4410,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                // \nocite{*} option
                                btprint.clear();
                        }
-                       os << "bibfiles " << '"' << p.verbatim_item() << '"' << "\n";
+                       os << "bibfiles " << '"' << normalize_filename(p.verbatim_item()) << '"' << "\n";
                        // Do we have addcontentsline?
                        if (contentslineContent == "\\refname") {
                                BibOpts = "bibtotoc";
@@ -4420,9 +4420,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        // Do we have a bibliographystyle set?
                        if (!bibliographystyle.empty()) {
                                if (BibOpts.empty())
-                                       BibOpts = bibliographystyle;
+                                       BibOpts = normalize_filename(bibliographystyle);
                                else
-                                       BibOpts = BibOpts + ',' + bibliographystyle;
+                                       BibOpts = BibOpts + ',' + normalize_filename(bibliographystyle);
                                // clear it because each bibtex entry has its style
                                // and we need an empty string to handle \phantomsection
                                bibliographystyle.clear();