diff 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
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):