[library-web] mallard: strip titles



commit 736b6c5c809a367c42265a8ba93007b5b5c2a494
Author: Frédéric Péters <fpeters 0d be>
Date:   Sun Jan 26 15:07:02 2014 +0000

    mallard: strip titles

 src/modtypes/mallard.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 6b4077e..cfd9d53 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -51,7 +51,7 @@ def plain_text(tag):
     for child in tag.getchildren():
         text.append(child.text)
         text.append(child.tail)
-    return ''.join([x for x in text if x])
+    return ''.join([x for x in text if x]).strip()
 
 
 class MallardPage:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]