示例#1
0
 def html_output(self):
     if self.format == "rest":
         output = rst2html(self.content, "html_body")
     elif self.format == "plain":
         output = plain2html(self.content)
     else:
         output = self.content
     return output