tools/pythonpoint/stdparser.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
child 3793 cc3f9cc828f7
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   784 
   784 
   785     ## intra-paragraph XML should be allowed through into PLATYPUS
   785     ## intra-paragraph XML should be allowed through into PLATYPUS
   786     def unknown_starttag(self, tag, attrs):
   786     def unknown_starttag(self, tag, attrs):
   787         if  self._curPara:
   787         if  self._curPara:
   788             echo = '<%s' % tag
   788             echo = '<%s' % tag
   789             for (key, value) in list(attrs.items()):
   789             for key, value in attrs.items():
   790                 echo = echo + ' %s="%s"' % (key, value)
   790                 echo = echo + ' %s="%s"' % (key, value)
   791             echo = echo + '>'
   791             echo = echo + '>'
   792             self._curPara.rawtext = self._curPara.rawtext + echo
   792             self._curPara.rawtext = self._curPara.rawtext + echo
   793         else:
   793         else:
   794             print('Unknown start tag %s' % tag)
   794             print('Unknown start tag %s' % tag)