- Timestamp:
- 14 Jul 2015, 20:52:23 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r10595 r13169 113 113 - remove newlines (not visible in HTML but visible in PDF) 114 114 - add <br> tags after <div> (as divs break lines in HTML but not in PDF) 115 - replace <li> tags (as lists are not supported by reportlab) 115 116 If not html code: 116 117 - just replace newlines by <br> tags 117 118 """ 118 119 if '</' in html: 119 # Add br tag if widgets contain div tags120 # which are not supported by reportlab121 120 html = html.replace('</div>', '</div><br />') 121 html = html.replace('<li>', '- ') 122 html = html.replace('</li>', '<br />') 122 123 html = html.replace('\n', '') 123 124 else:
Note: See TracChangeset for help on using the changeset viewer.