Code

Serve the correct ReST part in String.rst().
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 12 Mar 2009 14:29:26 +0000 (14:29 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 12 Mar 2009 14:29:26 +0000 (14:29 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4189 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 501ca3c213f7ffd82e1da038b6993b8ede880ac4..9cccd2d73a91d0c3daf3b24d32239326135bd0dd 100644 (file)
@@ -1424,7 +1424,7 @@ class StringHTMLProperty(HTMLProperty):
         s = self.plain(escape=0, hyperlink=0)
         if hyperlink:
             s = self.hyper_re.sub(self._hyper_repl_rst, s)
-        return ReStructuredText(s, writer_name="html")["body"].encode("utf-8",
+        return ReStructuredText(s, writer_name="html")["html_body"].encode("utf-8",
             "replace")
 
     def field(self, **kwargs):