From ddedf9f5ef5ddbba63cb4b3384b01004b31373d9 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 21 Jun 2005 09:01:41 +0000 Subject: [PATCH] make quoted filenames work when " is active git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10095 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/filetools.C | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 1da159332e..5d1c14f793 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2005-06-21 Georg Baum + + * filetools.C (latex_path): protect " with \string since it may be + active + 2005-05-07 Rob Bearman * fs_extras.C (copy_file): noclobber and CopyFile's bFailIfExists diff --git a/src/support/filetools.C b/src/support/filetools.C index 35609982ae..a80f3eccf1 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -87,7 +87,9 @@ string const latex_path(string const & original_path) string path = subst(original_path, "\\", "/"); path = subst(path, "~", "\\string~"); if (path.find(' ') != string::npos) - path = '"' + path + '"'; + // We can't use '"' because " is sometimes active (e.g. if + // babel is loaded with the "german" option) + path = "\\string\"" + path + "\\string\""; return path; } -- 2.39.2