Changeset 7804
- Timestamp:
- 8 Mar 2012, 16:30:34 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/pdf.py
r7714 r7804 178 178 f_label = Paragraph(f_label, style["Normal"]) 179 179 f_text = '<font size=12>%s</font>' % widget() 180 # Add br tag if widgets contain div tags 181 # which are not supported by reportlab 182 f_text = f_text.replace('</div>', '<br /></div>') 180 183 f_text = Paragraph(f_text, style["Normal"]) 181 184 data.append([f_label,f_text]) -
main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py
r7741 r7804 67 67 utf-8 encoded (usually the case for widgets etc.). 68 68 69 Finally, a br tag is added if widgets contain div tags 70 which are not supported by reportlab. 71 69 72 The returned snippet is unicode type. 70 73 """ … … 74 77 else: 75 78 text = unicode(text) 79 text = text.replace('</div>', '<br /></div>') 76 80 tag1 = u'<font color="%s" size="%d">' % (color, size) 77 81 return tag1 + u'%s</font>' % text
Note: See TracChangeset for help on using the changeset viewer.