Georg Baum wrote:
> I will commit the rest, can you take
> care of this please?

Yes. Since bugzilla is down, I sent the attached patch to Uwe for testing.

Jürgen
Index: src/LaTeX.C
===================================================================
--- src/LaTeX.C	(Revision 17412)
+++ src/LaTeX.C	(Arbeitskopie)
@@ -804,6 +804,12 @@
 			// 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 =
@@ -834,6 +840,12 @@
 			// 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 =

Reply via email to