Changeset 16149 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 7 Jul 2020, 20:29:27 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r16148 r16149 115 115 - add <br> tags after <div> (as divs break lines in HTML but not in PDF) 116 116 - replace <li> tags (as lists are not supported by reportlab) 117 118 The link tag must not be used in html coded text. Use a tags instead. 119 117 120 If not html code: 118 121 - just replace newlines by <br> tags … … 120 123 if u'₦' in html: 121 124 html = html.replace(u'₦', u'NGN') 122 if '</' in html :125 if '</' in html and not '</link' in html: 123 126 html = html.replace('</div>', '</div><br />') 124 127 html = html.replace('<li>', '- ')
Note: See TracChangeset for help on using the changeset viewer.