]> git.lyx.org Git - features.git/commitdiff
Keeping the comma leads to bug #6914, since we end up with mangled names
authorRichard Heck <rgheck@comcast.net>
Fri, 24 Sep 2010 16:12:02 +0000 (16:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 24 Sep 2010 16:12:02 +0000 (16:12 +0000)
like:
  0_tmp_the,_test_tst.bib
and then code like:
  \bibliography{0_tmp_the,_test_tst}
which confuses LaTeX. Easy solution: Mangle the comma.

Jurgen, this is in branch, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35493 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index e68d1f71906669d7af064e27a97eac1a2521eecb..54c6fc9fd9859c909fdb1871867176901dab0e05 100644 (file)
@@ -1109,7 +1109,7 @@ string DocFileName::mangledFileName(string const & dir) const
        // in the name.
        static string const keep = "abcdefghijklmnopqrstuvwxyz"
                                   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-                                  "+,-0123456789;=";
+                                  "+-0123456789;=";
        string::size_type pos = 0;
        while ((pos = mname.find_first_not_of(keep, pos)) != string::npos)
                mname[pos++] = '_';