From 5b018f3d9a0a7da54a610168469691d9a14bfaec Mon Sep 17 00:00:00 2001 From: gian Date: Wed, 10 Feb 2010 14:28:49 +0100 Subject: [PATCH] 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 --- libbe/command/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), -- 2.26.2