mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
mangle spaces in graphics filenames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10102 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b8b076de65
commit
0f36c0f3ff
@ -1,3 +1,7 @@
|
||||
2005-06-24 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* insetgraphics.C (prepareFile): replace spaces in filenames with _
|
||||
|
||||
2005-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* insetgraphics.C (prepareFile): Don't strip the extension, because
|
||||
|
@ -623,6 +623,8 @@ string const InsetGraphics::prepareFile(Buffer const * buf) const
|
||||
// without ext and /
|
||||
temp_file = subst(
|
||||
ChangeExtension(orig_file_with_path, string()), "/", "_");
|
||||
// Replace ' ' in the file name with '_'
|
||||
temp_file = subst(temp_file, " ", "_");
|
||||
// without dots and again with ext
|
||||
temp_file = ChangeExtension(
|
||||
subst(temp_file, ".", "_"), ext_tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user