From abb158f56bb471a40e7899056572d543e627740f Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 26 Aug 1999 18:04:32 +0000 Subject: [PATCH] feed(): Added support for ESIS '&' lines. --- Doc/tools/sgmlconv/esistools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Doc/tools/sgmlconv/esistools.py b/Doc/tools/sgmlconv/esistools.py index 18117b5b3d0..b89476ca087 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()