Reportlab - how to introduce line break if the paragraph is too long for a line

后端 未结 3 614
北海茫月
北海茫月 2020-12-19 02:15

I have a list of text to be added to a reportlab frame

style = getSampleStyleSheet()[\'Normal\']
style.wordWrap = \'LTR\'
style.leading = 12
for legend in le         


        
3条回答
  •  借酒劲吻你
    2020-12-19 02:46

    style.wordWrap = 'LTR'
    

    Sorry if I misunderstood this as letter, but Paragraph itself is "word wrapped", in relation to document pagesize also.

    There's userguide value of 'CJK' for Asian language, possibly your setting do the text to search for finishing line according to something else, like Asian language word splitting. Set it to None should do the thing.

提交回复
热议问题