Mercurial > libervia-web
comparison src/browser/sat_browser/richtext.py @ 876:ca31e4f677e5
browser (richtext): fixes uninitialized variable
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 04 Mar 2016 10:39:26 +0100 |
parents | f8a7a046ff9c |
children | 2d15b484ca33 |
comparison
equal
deleted
inserted
replaced
875:d9b98b8a1847 | 876:ca31e4f677e5 |
---|---|
322 """Set the content of the editor_widget.HTMLTextEditor which is used for display/wysiwyg""" | 322 """Set the content of the editor_widget.HTMLTextEditor which is used for display/wysiwyg""" |
323 content = self._original_content | 323 content = self._original_content |
324 text = content['text'] | 324 text = content['text'] |
325 if 'title' in content and content['title']: | 325 if 'title' in content and content['title']: |
326 title = '<h2>%s</h2>' % html_tools.html_sanitize(content['title']) | 326 title = '<h2>%s</h2>' % html_tools.html_sanitize(content['title']) |
327 else: | |
328 title = "" | |
327 | 329 |
328 tags = "" | 330 tags = "" |
329 for tag in common.dict2iter('tag', content): | 331 for tag in common.dict2iter('tag', content): |
330 tags += "<li><a>%s</a></li>" % html_tools.html_sanitize(tag) | 332 tags += "<li><a>%s</a></li>" % html_tools.html_sanitize(tag) |
331 if tags: | 333 if tags: |