if len(self.text) > 0 and self.text[-1] != u'\n':
self.text = self.text + u'\n'
# work out if we're in an ol rather than a ul
latesttags = self.opentags[-4:]
latesttags.reverse()
if len(self.text) > 0 and self.text[-1] != u'\n':
self.text = self.text + u'\n'
# work out if we're in an ol rather than a ul
latesttags = self.opentags[-4:]
latesttags.reverse()