[reportlab-users] nbsp and justification problem

Anton Petrushenkov wiseman.std at gmail.com
Thu Apr 29 09:04:45 EDT 2010


Andy, thanks for good advice!

Robin, what if we make such an alteration:

xpreformatted.py:
....
def _getFragWord(frags):
...
s = s + string.count(text, ' ') # much faster for many blanks
add line: s = s + string.count(text, u'\xA0')

u'\xA0' - is example, I'm still not sure it'll do the work. I'm now in
process of trying.
http://en.wikipedia.org/wiki/Non-breaking_space#Encodings
Nevertheless, question is: what do you think about such a trick?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100429/d521a62f/attachment.htm>


More information about the reportlab-users mailing list