From: Oleg Broytman Date: Wed, 25 Aug 2010 12:59:59 +0000 (+0000) Subject: Rolled back some changes. X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fphdru.name.git;a=commitdiff_plain;h=8dba3199ebeac8260f5a0e90f68b6adcc91d579b Rolled back some changes. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@113 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/phd_pp.py b/phd_pp.py index f9c9a67..d4b2e32 100644 --- 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())