From: gian Date: Wed, 10 Feb 2010 13:28:49 +0000 (+0100) Subject: Fixed a bug in the be html command. X-Git-Tag: 1.0.0~59^2~11^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b018f3d9a0a7da54a610168469691d9a14bfaec;p=be.git Fixed a bug in the be html command. 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 --- diff --git a/libbe/command/html.py b/libbe/command/html.py index fbbdf97..b769179 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -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'),