From: stefan Date: Thu, 12 Mar 2009 14:29:26 +0000 (+0000) Subject: Serve the correct ReST part in String.rst(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=063c12bb1d114c1da7437bad54396d165dfd8cad;p=roundup.git Serve the correct ReST part in String.rst(). git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4189 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 501ca3c..9cccd2d 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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):