mangle spaces in filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-06-24 14:20:51 +00:00
parent 2368acd8c0
commit e1daab958f
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-06-24 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* FileName.C (mangledFilename): replace spaces with _
2005-06-21 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* filetools.C (latex_path): protect " with \string since it may be

View File

@ -84,6 +84,8 @@ string const FileName::mangledFilename() const
mname = subst(mname, "/", "_");
// Replace '.' in the file name with '_'
mname = subst(mname, ".", "_");
// Replace ' ' in the file name with '_'
mname = subst(mname, " ", "_");
// Add the extension back on
mname = ChangeExtension(mname, GetExtension(name_));