Submitted by : Martijn Pieters at: 2005-03-30T06:06:19+00:00 (14 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.


comments:

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