]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Rolled back some changes.
authorOleg Broytman <phd@phdru.name>
Wed, 25 Aug 2010 12:59:59 +0000 (12:59 +0000)
committerOleg Broytman <phd@phdru.name>
Wed, 25 Aug 2010 12:59:59 +0000 (12:59 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@113 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

phd_pp.py

index f9c9a67dca9712272ba8141bf9e7e9d57ea43690..d4b2e3211747d7ba54f11aecfa50c7cfc4e9ce52 100644 (file)
--- a/phd_pp.py
+++ b/phd_pp.py
@@ -39,12 +39,11 @@ class phd_pp(Template):
 
    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())