[GRASS-SVN] r37552 - grass/trunk/tools/g.html2man
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 27 20:42:38 EDT 2009
Author: glynn
Date: 2009-05-27 20:42:37 -0400 (Wed, 27 May 2009)
New Revision: 37552
Modified:
grass/trunk/tools/g.html2man/g.html2man.py
Log:
Treat '-' as minus, not hyphen
Generate warning for &#nn; character references (not supported)
Modified: grass/trunk/tools/g.html2man/g.html2man.py
===================================================================
--- grass/trunk/tools/g.html2man/g.html2man.py 2009-05-27 22:06:35 UTC (rev 37551)
+++ grass/trunk/tools/g.html2man/g.html2man.py 2009-05-28 00:42:37 UTC (rev 37552)
@@ -366,6 +366,7 @@
s = s.replace("'", "\\(cq")
s = s.replace("\"", "\\(dq")
s = s.replace("`", "\\(ga")
+ s = s.replace("-", "\\-")
if self.at_bol and s[0] in [".","'"]:
s = "\\&" + s
self.show(s)
@@ -451,6 +452,9 @@
else:
sys.stderr.write("unrecognized entity: %s\n" % name)
+ def handle_charref(self, name):
+ sys.stderr.write('unsupported character reference <%s>' % name);
+
def handle_data(self, data):
self.append(data)
More information about the grass-commit
mailing list