Changeset 7804 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 8 Mar 2012, 16:30:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.