+ self.text = self.text + "\n\n" + self.headingtext + "\n" + "~" * len(self.headingtext.strip())
+ self.headingtext = u''
+ elif tag.lower() == "p":
+ self.text = self.text + "\n".join(textwrap.wrap(self.currentparagraph, 70))
+ self.inparagraph = False
+ elif tag.lower() == "blockquote":
+ self.text = self.text + "\n> " + "\n> ".join([a.strip() for a in textwrap.wrap(self.blockquote, 68)]).encode("utf-8") + "\n"
+ self.inblockquote = False
+ self.blockquote = u''
+ elif tag.lower() == "pre":
+ self.inpre = False