]> git.lyx.org Git - features.git/commitdiff
\detokenize paths containing ~
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Jul 2019 08:32:06 +0000 (10:32 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Jul 2019 08:32:06 +0000 (10:32 +0200)
src/Buffer.cpp

index f1455ddd909e090c83e72561f5256bf70b1a80b8..2e467d589b8144722751a3e4655c47057636b505 100644 (file)
@@ -1931,7 +1931,8 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os,
                                        os << "\\catcode`\\%=11"
                                              "\\def\\%{%}\\catcode`\\%=14\n";
                                }
-                               bool const detokenize = !isAscii(from_utf8(docdir));
+                               bool const detokenize = !isAscii(from_utf8(docdir))
+                                               || contains(docdir, '~');
                                bool const quote = contains(docdir, ' ');
                                os << "\\makeatletter\n"
                                   << "\\def\\input@path{{";