From 8dba3199ebeac8260f5a0e90f68b6adcc91d579b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 25 Aug 2010 12:59:59 +0000 Subject: [PATCH] Rolled back some changes. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@113 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- phd_pp.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()) -- 2.39.5