[library-web] [mallard] plain title fix



commit 45a473a277770114b2cf84c6f58f57a9ddc86bc7
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Apr 6 19:59:48 2011 +0530

    [mallard] plain title fix

 src/modtypes/mallard.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index bcc15fa..3b81c21 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -273,6 +273,8 @@ class MallardModule(DocModule):
                     def get_plain(x):
                         if x.text:
                             t = x.text
+                        else:
+                            t = ''
                         for element in x.getchildren():
                             if element.tag == '{%s}media' % MAL_NS:
                                 continue



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