git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@113
7bb0bf08-9e0d-0410-b083-
99cee3bf18b8
def body(self):
if hasattr(self, "body_html"):
- body = self.body_html()
+ return self.body_html()
if hasattr(self, "body_text"):
- body = self.text2html()
+ return self.text2html()
if hasattr(self, "body_rst"):
- body = self.rst2html()
- return body
+ return self.rst2html()
def text2html(self):
body = re.sub(url_re, _url2href, self.body_text())