[reportlab-users] nbsp and justification problem

Anton Petrushenkov wiseman.std at gmail.com
Thu Apr 29 04:52:59 EDT 2010

Robin, thanks for such a fast answer.
Actually, I realize what &nbsp is ;)
I've dug some sources, and now suppose, that problem is (in my opinion) in
algorithm that counts "extraspace" parameter (in xpreformatted.py).
I mean it doesn't know width of this very symbol and that is why returns
faulty number.
I'm continuing to dig deeper now, but if I'm completely wrong on this one
please tell me.

Is there any way to perform a search on this mail-list's archives? Googling
on "reportlab intra-word breaking" doesn't help :(

On 29 April 2010 12:39, Robin Becker <robin at reportlab.com> wrote:

> On 29/04/2010 07:57, Anton Petrushenkov wrote:


>> Hi, everybody. I found reportlab itself very useful and process of working

>> with it just awesome!

>> But got stuck with such a problem:

>> when I'm using "nbsp" symbols with platypus "justify" setting these very

>> string where nbsp is used are exceeding right margin.

>> Seems, that their length is counted incorrectly. Is there any workaround?

>> Any help would be appreciated!


> .......

> &nbsp; means non-breaking space so I assume that's what's causing the

> problem. The line breaking here is particularly stupid. There have been

> extensions posted here which allow for intra-word breaking, perhaps one of

> those would suit.

> --

> Robin Becker


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100429/f01c81a2/attachment.htm>

More information about the reportlab-users mailing list