Public Member Functions | |
def | __init__ |
def | xml |
Public Attributes | |
comment |
Definition at line 3 of file util.py.
def XmlDetDescGen::util::Comment::__init__ | ( | self, | ||
comment = "" | ||||
) |
def XmlDetDescGen::util::Comment::xml | ( | self, | ||
fo, | ||||
pre | ||||
) |
Definition at line 7 of file util.py.
00007 : 00008 lines = self.comment.split('\n') 00009 if 1 == len(lines) and len(lines[0]) <= 70: 00010 fo.write("%s<!-- %s -->\n"%(pre,lines[0])) 00011 return 00012 fo.write("%s<!--\n"%pre) 00013 for line in self.comment.split('\n'): 00014 fo.write(pre+' '+line+'\n') 00015 fo.write("%s-->\n"%pre) 00016 return class ExternalEntity: