[gimp-web] Don't destroy html character references
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web] Don't destroy html character references
- Date: Fri, 19 Apr 2013 11:07:20 +0000 (UTC)
commit 2e24648f58c508e81cda3359f68757a8e82008e0
Author: Michael Schumacher <schumaml gmx de>
Date: Fri Apr 19 12:45:25 2013 +0200
Don't destroy html character references
programmatic/tools/rewrite_attrs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/programmatic/tools/rewrite_attrs.py b/programmatic/tools/rewrite_attrs.py
index 89eb7f9..5e021a4 100755
--- a/programmatic/tools/rewrite_attrs.py
+++ b/programmatic/tools/rewrite_attrs.py
@@ -131,7 +131,7 @@ class xhtml_parser(HTMLParser.HTMLParser):
return
def handle_charref(self, name):
- self.output.write("&#" + name)
+ self.output.write("&#" + name + ";")
return
def handle_entityref(self, name):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]