[reportlab-users] Paragraphs and Spaces

Andy Robinson andy at reportlab.com
Mon Sep 18 13:25:38 EDT 2006


> This is NOT one paragraph.  This is a paragraph, a numbered list, three
> indented paragraphs, and non-indented paragraph.
> 

Yes, that's the 'official position'.

We frequently run into these situations; usually it's a web based CMS 
where end users have been typing in some kind of structured text and 
have evolved their own conventions.  In these cases one needs to write a 
function which parses it and emits a sequence of bullets, paragraphs and 
  so on.  And, if circumstances permits, try to use that function to 
check the input when users put the stuff in in the first place.

We don't do non-breaking space or tabs; if you want those effects, use 
leftIndent / rightIndent / firstLineIndent properties of the paragraph 
style.  We do, however, have a <br/> tag now - but it is just a line 
break and doesn't do the right inter-paragraph spacing for the style.

- Andy


More information about the reportlab-users mailing list