changeset 876:ca31e4f677e5

browser (richtext): fixes uninitialized variable
author souliane <souliane@mailoo.org>
date Fri, 04 Mar 2016 10:39:26 +0100
parents d9b98b8a1847
children acde4b729034
files src/browser/sat_browser/richtext.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/browser/sat_browser/richtext.py	Wed Mar 02 17:14:02 2016 +0100
+++ b/src/browser/sat_browser/richtext.py	Fri Mar 04 10:39:26 2016 +0100
@@ -324,6 +324,8 @@
         text = content['text']
         if 'title' in content and content['title']:
             title = '<h2>%s</h2>' % html_tools.html_sanitize(content['title'])
+        else:
+            title = ""
 
         tags = ""
         for tag in common.dict2iter('tag', content):