Submitted by : Martijn Pieters at: 2005-03-30T06:06:19+00:00 (12 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

The plaintext prerender method only prerenders self.read(); it should prerender self.document() and then call self.preRenderMessages().

In the current situation, after editing a plaintext Wiki page with comments, the comments are rendered as raw mbox messages.

The following version of the preRender method works for me --Martijn Pieters, Wed, 30 Mar 2005 06:20:32 -0800 reply

Code snippet:

def preRender(self, page, text=None):
    t = text or (page.document()+'\n'+MIDSECTIONMARKER+ \
                     self.preRenderMessages(page))
    t = self.renderPlaintextIn(t)
    t = self.protectEmailAddresses(page,t)
    return t

Patch is in darcs now, many thanks to Martijn --betabug, Fri, 18 May 2007 00:06:46 -0700 reply

Status: open => closed

Had to adjust the patch a little bit, added a test, should be fine in 0.60 now.