diff --git a/Doc/tools/sgmlconv/latex2esis.py b/Doc/tools/sgmlconv/latex2esis.py index 02711a30617..325b0b138fe 100755 --- a/Doc/tools/sgmlconv/latex2esis.py +++ b/Doc/tools/sgmlconv/latex2esis.py @@ -266,6 +266,8 @@ def subconvert(self, endchar=None, depth=0): self.write("(%s\n" % entry.outputname) self.err_write("--- text: %s\n" % `pentry.text`) self.write("-%s\n" % encode(pentry.text)) + elif pentry.type == "entityref": + self.write("&%s\n" % pentry.name) if entry.outputname: if not opened: self.write("(%s\n" % entry.outputname) @@ -460,6 +462,11 @@ def start_attribute(self, attrs): def end_attribute(self): self.__current.parameters[-1].text = self.__buffer + def start_entityref(self, attrs): + name = attrs["name"] + p = Parameter("entityref", name) + self.__current.parameters.append(p) + def start_child(self, attrs): name = attrs["name"] p = Parameter("child", name, attrs.get("optional") == "yes")