mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
\input{foo} means to input foo.tex, so add the .tex extension. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18470 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
43215a323f
commit
78378912a3
@ -2154,7 +2154,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
// therefore path is only used for testing
|
||||
// FIXME UNICODE encoding of filename and path may be
|
||||
// wrong (makeAbsPath expects utf8)
|
||||
if (t.cs() == "include" &&
|
||||
if ((t.cs() == "include" || t.cs() == "input") &&
|
||||
!fs::exists(makeAbsPath(filename, path).toFilesystemEncoding())) {
|
||||
// The file extension is probably missing.
|
||||
// Now try to find it out.
|
||||
|
Loading…
Reference in New Issue
Block a user