view.py
branchstable
changeset 3969 970a748684b5
parent 3839 84c9aab84d8c
child 3973 1c09d2fd38c5
--- a/view.py	Wed Dec 02 13:22:50 2009 +0100
+++ b/view.py	Wed Dec 02 14:35:23 2009 +0100
@@ -312,7 +312,10 @@
             else:
                 w(u'<span>%s</span> ' % label)
         if table:
-            w(u'<td>%s</td></tr>' % value)
+            if not (show_label and label):
+                w(u'<td colspan="2">%s</td></tr>' % value)
+            else:
+                w(u'<td>%s</td></tr>' % value)
         else:
             w(u'<span>%s</span></div>' % value)