summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-08-26 18:04:32 (GMT)
committerFred Drake <fdrake@acm.org>1999-08-26 18:04:32 (GMT)
commitabb158f56bb471a40e7899056572d543e627740f (patch)
treedeb95c9af86f37215ddcf4d1f70e2fec9ca90299
parent1f33292542ac4124808a83de2362fbe9c61b4875 (diff)
downloadcpython-abb158f56bb471a40e7899056572d543e627740f.zip
cpython-abb158f56bb471a40e7899056572d543e627740f.tar.gz
cpython-abb158f56bb471a40e7899056572d543e627740f.tar.bz2
feed(): Added support for ESIS '&' lines.
-rw-r--r--Doc/tools/sgmlconv/esistools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/tools/sgmlconv/esistools.py b/Doc/tools/sgmlconv/esistools.py
index 18117b5..b89476c 100644
--- a/Doc/tools/sgmlconv/esistools.py
+++ b/Doc/tools/sgmlconv/esistools.py
@@ -73,8 +73,11 @@ class ExtendedEsisBuilder(xml.dom.esis_builder.EsisBuilder):
return
elif event == 'e':
self.__is_empty = 1
+ elif event == '&':
+ eref = self.document.createEntityReference(text)
+ self.push(eref)
else:
sys.stderr.write('Unknown event: %s\n' % line)
-
+
def get_empties(self):
return self.__empties.keys()