mirror of https://github.com/python/cpython
feed(): Added support for ESIS '&' lines.
This commit is contained in:
parent
1f33292542
commit
abb158f56b
|
@ -73,6 +73,9 @@ 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue