diff roundup/cgi/templating.py @ 4097:1daf9f921cc9

Serve the correct ReST part in String.rst().
author Stefan Seefeld <stefan@seefeld.name>
date Thu, 12 Mar 2009 14:29:26 +0000
parents 6f698aef2ad4
children 6441ffe588f7
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Mar 12 14:27:20 2009 +0000
+++ b/roundup/cgi/templating.py	Thu Mar 12 14:29:26 2009 +0000
@@ -1424,7 +1424,7 @@
         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):

Roundup Issue Tracker: http://roundup-tracker.org/