Forum How do I...?

Prince automatically replace all spaces with single space.

foo
Hi,

Adding space between words is required by some of my business customers. So, I tried to add some spaces between 2 words and no matter how many spaces I added in. Prince will replace them all with a single space.
I can work around by adding a   between space. (see attached).
I don't know why prince has this behavior. This automation may be good for most of the case, but not for all.
Is there any setting to change this behavior?


Thanks
  1. inspect html elememt.png20.6 kB
    code
  2. result.png11.3 kB
    pdf from prince test1.html
mikeday
This is how HTML works. You can override this behaviour by applying CSS "white-space: pre-wrap" to the element.