mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
* src/LaTeX.C (handleFoundFile):
- consider that paths with spaces might be enclosed in quotation marks (partial fix for bug 3172). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17451 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
93d8c09d65
commit
fc26b56b4f
12
src/LaTeX.C
12
src/LaTeX.C
@ -800,6 +800,12 @@ bool handleFoundFile(string const & ff, DepTable & head)
|
||||
// check for spaces
|
||||
string strippedfile = foundfile;
|
||||
while (contains(strippedfile, " ")) {
|
||||
// files with spaces are often enclosed in quotation
|
||||
// marks; those have to be removed
|
||||
string unquoted = subst(strippedfile, '"', char());
|
||||
absname.set(unquoted);
|
||||
if (insertIfExists(absname, head))
|
||||
return true;
|
||||
// strip off part after last space and try again
|
||||
string tmp = strippedfile;
|
||||
string const stripoff =
|
||||
@ -828,6 +834,12 @@ bool handleFoundFile(string const & ff, DepTable & head)
|
||||
// everything o.k.
|
||||
break;
|
||||
else {
|
||||
// files with spaces are often enclosed in quotation
|
||||
// marks; those have to be removed
|
||||
string unquoted = subst(foundfile, '"', char());
|
||||
absname = makeAbsPath(unquoted);
|
||||
if (fs::exists(absname.toFilesystemEncoding()))
|
||||
break;
|
||||
// strip off part after last space and try again
|
||||
string strippedfile;
|
||||
string const stripoff =
|
||||
|
Loading…
x
Reference in New Issue
Block a user