mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
parent
e75fa6f3ac
commit
a426b33067
@ -1940,11 +1940,12 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os,
|
||||
os << "\\catcode`\\%=11"
|
||||
"\\def\\%{%}\\catcode`\\%=14\n";
|
||||
}
|
||||
if (contains(docdir, '~'))
|
||||
docdir = subst(docdir, "~", "\\string~");
|
||||
bool const nonascii = !isAscii(from_utf8(docdir));
|
||||
// LaTeX 2019/10/01 handles non-ascii path without detokenize
|
||||
bool const utfpathlatex = features.isAvailable("LaTeX-2019/10/01");
|
||||
bool const detokenize = !utfpathlatex
|
||||
&& (nonascii || contains(docdir, '~'));
|
||||
bool const detokenize = !utfpathlatex && nonascii;
|
||||
bool const quote = contains(docdir, ' ');
|
||||
if (utfpathlatex && nonascii)
|
||||
os << "\\UseRawInputEncoding\n";
|
||||
|
Loading…
Reference in New Issue
Block a user