Fixed a bug in the be html command.
authorgian <gian@li82-39>
Wed, 10 Feb 2010 13:28:49 +0000 (14:28 +0100)
committergian <gian@li82-39>
Wed, 10 Feb 2010 13:28:49 +0000 (14:28 +0100)
  File "/usr/lib/python2.5/site-packages/libbe/command/html.py", line 371, in _escape
    return xml.sax.saxutils.escape(char)
NameError: global name 'char' is not defined

libbe/command/html.py

index fbbdf978c332a32b17782ffe018c1c24ac503ab6..b769179b15d3609dda214bd402a55cea72f46fe7 100644 (file)
@@ -368,7 +368,7 @@ class HTMLGen (object):
     def _escape(self, string):
         if string == None:
             return ''
-        return xml.sax.saxutils.escape(char)
+        return xml.sax.saxutils.escape(string)
 
     def _load_user_templates(self):
         for filename,attr in [('style.css','css_file'),