GNOME Bugzilla – Bug 753145
gtkdoc-mkhtml fails on spaces in file names
Last modified: 2016-09-28 21:11:18 UTC
If you have an sgml file in a path with a space in it, it fails. For example: gtkdoc-mkhtml foobar '../../test cases/frameworks/10 gtk-doc/doc/foobar-docs.sgml' Outputs head: cannot open ‘../../test’ for reading: No such file or directory head: cannot open ‘cases/frameworks/10’ for reading: No such file or directory head: cannot open ‘gtk-doc/doc/foobar-docs.sgml’ for reading: No such file or directory If the file is in a directory without spaces, then it will work.
Created attachment 308624 [details] [review] mkhtml: quote document to allow spaces in filenames Reference: https://bugzilla.gnome.org/show_bug.cgi?id=753145 Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
Please note that I have not tested patch yet.
Thanks for the patch! It is correct. I've expanded your patch to also fix gtkdoc-mkpdf and cover a few more cases. commit 12adab6b0a28aec4008c6deed247bf944b5882f2 Author: Igor Gnatenko <ignatenko@src.gnome.org> Date: Sun Aug 2 00:13:20 2015 +0300 mkhtml/pdf: quote document to allow spaces in filenames Reference: https://bugzilla.gnome.org/show_bug.cgi?id=753145 Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
This fix is not enough, in gtkdoc-mkhtml passing $path_arg (which is set to "--path $searchpath") still makes the searchpath separated strings in xsltproc list of arguments.
Created attachment 336429 [details] [review] mkhtml/pdf: Pass searchpath as quoted to allow spaces in the names
I already have a patch for this in https://bugzilla.gnome.org/show_bug.cgi?id=769125 that fixes all instances of spaces.
I'm going to close this bug because the original issue it was about has been fixed. Let's talk on the new one. :)