+ if self.inparagraph:
+ self.text = self.text + "\n".join(textwrap.wrap(self.currentparagraph, 70)).encode('utf-8') + "\n"
+ self.currentparagraph = ""
+ elif self.inblockquote:
+ self.text = self.text + "\n> " + "\n> ".join([a.strip() for a in textwrap.wrap(self.blockquote, 68)]).encode("utf-8") + "\n"
+ self.blockquote = u''
+ else:
+ self.text = self.text + "\n"
+ elif tag.lower() == "blockquote":
+ self.inblockquote = True