diff options
author | Fred Drake <fdrake@acm.org> | 1999-08-26 18:04:32 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-08-26 18:04:32 (GMT) |
commit | abb158f56bb471a40e7899056572d543e627740f (patch) | |
tree | deb95c9af86f37215ddcf4d1f70e2fec9ca90299 /Doc | |
parent | 1f33292542ac4124808a83de2362fbe9c61b4875 (diff) | |
download | cpython-abb158f56bb471a40e7899056572d543e627740f.zip cpython-abb158f56bb471a40e7899056572d543e627740f.tar.gz cpython-abb158f56bb471a40e7899056572d543e627740f.tar.bz2 |
feed(): Added support for ESIS '&' lines.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tools/sgmlconv/esistools.py | 5 |
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() |