I think now I have a fully working patch:
This line
page=re.sub(r'(?i)"'+iurl,'"'+img_filename,page)
could put in the html page a mix of escaped and unescaped spaces in the
paths...
(e.g. /tmp/tmp33GfZf/Name\ with\ space/doc space/image path/velocity space.gif)
Now this line will be
page=re.sub(r'(?i)"'+iurl,'"'+re.sub('\\\\ ', ' ', img_filename),page)
to put only unescaped paths in the html page.
** Patch added: "Fixing path with spaces patch"
https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+attachment/2609595/+files/chm2pdf_space.diff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/894193
Title:
Trouble if chm contains path with spaces
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chm2pdf/+bug/894193/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs