dyausp / html2pdf

Automatically exported from code.google.com/p/html2pdf
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Whitespace after Slash in URIs #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

html2pdf splits a text block into words, on all positions where there can be a 
linebreak (break_into_words() - inline.content.builder.php).
Unfortunately this also splits on slashes ( / ). So i.e. in URIs, it adds a 
whitespace after every slash.

In my case, I changed data/LineBreak.txt so slashes are treated the same as 
normal characters:

002F;AL # SOLIDUS

Then I deleted utf8.mappings.dat and unicode.lb.classes.dat in the cache/ 
directory, so they will be recreated on the next run.

But with this, there will never be a linebreak, if there is no whitespace after 
the slash.

Hope this might help someone.

Original issue reported on code.google.com by biosera...@gmail.com on 21 Nov 2010 at 1:51

GoogleCodeExporter commented 9 years ago
Thanks!!!!

Original comment by romz...@gmail.com on 5 Dec 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Thank you! Works perfectly!

Original comment by s.ludwig...@gmail.com on 20 May 2014 at 8:13