actually want (previous version might have been a bit of a work around)
elif self.inpre:
self.text = self.text + unicode(data, "utf-8")
else:
elif self.inpre:
self.text = self.text + unicode(data, "utf-8")
else:
- self.text = self.text + unicode(data, "utf-8").strip() + u' '
+ isallwhitespace = data.strip()
+ if isallwhitespace != "" and self.text[-1] == "\n":
+ self.text = self.text + unicode(data, "utf-8").strip() + u' '
def handle_entityref(self, name):
entity = name
def handle_entityref(self, name):
entity = name
-This is a well formed unordered list.
- * The first item
- * The second item
- * The third item
-
+This is a well formed unordered list.
+ * The first item
+ * The second item
+ * The third item