Changeset 9052
- Timestamp:
- 26 Jul 2012, 06:20:35 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py
r8922 r9052 221 221 self.widgets['next_kin_address'].cssClass = 'span8' 222 222 self.widgets['next_kin_address'].height = 6 223 if self.widgets.get('notice'): 224 self.widgets['notice'].cssClass = 'span8' 225 self.widgets['notice'].height = 6 223 226 if self.widgets.get('description'): 224 227 self.widgets['description'].cssClass = 'span12' -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r9040 r9052 83 83 84 84 Main things fixed here: 85 85 If html code: 86 86 - remove newlines (not visible in HTML but visible in PDF) 87 87 - add <br> tags after <div> (as divs break lines in HTML but not in PDF) 88 If not html code: 89 - just replace newlines by <br> tags 88 90 """ 89 # Add br tag if widgets contain div tags 90 # which are not supported by reportlab 91 html = html.replace('</div>', '</div><br />') 92 html = html.replace('\n', '') 91 if '</' in html: 92 # Add br tag if widgets contain div tags 93 # which are not supported by reportlab 94 html = html.replace('</div>', '</div><br />') 95 html = html.replace('\n', '') 96 else: 97 html = html.replace('\n', '<br />') 93 98 return html 94 99
Note: See TracChangeset for help on using the changeset viewer.