Kaydet (Commit) 53eae8e8 authored tarafından Fred Drake's avatar Fred Drake

convert(): Add support for ESIS '&' lines, and make sure we don't

            silently ignore unrecognized lines.
üst 762e2067
......@@ -146,6 +146,11 @@ def convert(ifp, ofp, xml=0, autoclose=(), verbatims=()):
attrs[name] = esistools.decode(value)
elif type == "e":
knownempty = 1
elif type == "&":
ofp.write("&%s;" % data)
knownempty = 0
else:
raise RuntimeError, "unrecognized ESIS event type: '%s'" % type
if LIST_EMPTIES:
dump_empty_element_names(knownempties)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment