Re: issue moving from 3.4.0 to latest

James PK <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
 > I'm upgrading reportlab from 3.4.0 to 3.5.x issue with _do_post_text()

You have upgraded reportlab, I assume that your Python version is still 
the same.

Is the 'issue' an exception or that the output looks different in 3.5.x?


 > which is returning a string of zero length ('') and not a number.
 > I can fix the issue by changing the lw value to 0 (zero).

 From the repository it looks like _usCon() (added in commit in March 
2018) and it does look like its intention is to return a number.


Do you have a slimmed down source file your could email for testing 
purposes?

James



On 06/09/2019 03:13, johnf wrote:
> 
>   Hi everyone,
> 
> 
>   I'm upgrading reportlab from 3.4.0 to 3.5.x issue with _do_post_text()
> 
> I'm upgrading reportlab from 3.4.0 to 3.5.x and there is a change in 
> paragraph.py -> _do_post_text(). In that method there is a line of code:
> 
> lw = _isConv(w,values,default=tx._defaultLineWidth)
> 
> which is returning a string of zero length ('') and not a number. I can 
> fix the issue by changing the lw value to 0 (zero).
> 
> But I wonder where I should be looking for the root of the issue???? Is 
> it in my rxml file. The file print fine with reportlab 3.4.0.
> 
> 
> Johnf
> 
> 
> 
> _______________________________________________
> reportlab-users mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
> 
_______________________________________________
reportlab-users mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.