changeset 3258:1ff7cb6c381b

Don't assume style attribute contains colon
author Mikko Virkkil? <mvirkkil@cc.hut.fi>
date Fri, 14 Mar 2008 18:07:32 +0100
parents 7beffeb2e41f
children c538d9029186
files MoinMoin/formatter/text_docbook.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_docbook.py	Fri Mar 14 17:07:02 2008 +0100
+++ b/MoinMoin/formatter/text_docbook.py	Fri Mar 14 18:07:32 2008 +0100
@@ -707,6 +707,8 @@
         for s in styles.split(";"):
             if s.strip(' "') == "":
                 continue
+            if s.find(":")<0:
+                continue
             (key, value) = s.split(":", 1)
             key = key.strip(' "')
             value = value.strip(' "')