From c46a01a36e8a7079f00ec2779afe43a3fc34ba1f Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Wed, 22 Mar 2000 04:24:41 +0000 Subject: Jim Tittsler finds more buglets with the generated HTML: My /mailman/listinfo page was missing a tag. It looks like it is missing from all pages generated by mailman/htmlformat.py As long as I was looking at the HTML source, I noticed that it quoted the attribute values for some of the tags (like for the BODY tag), but not those for table, table rows, and cells. That led to things like 100% and #99CCFF not being quoted literals. --- Mailman/htmlformat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mailman/htmlformat.py') diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index f1fbccffb..329afc6fa 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -121,7 +121,7 @@ class Table: output = output + ' NOWRAP' continue else: - output = output + ' %s=%s' %(string.upper(key), val) + output = output + ' %s="%s"' %(string.upper(key), val) return output @@ -132,7 +132,7 @@ class Table: for (key, val) in info.items(): if not key in valid_mods: continue - output = output + ' %s=%s' %(string.upper(key), val) + output = output + ' %s="%s"' %(string.upper(key), val) return output @@ -149,7 +149,7 @@ class Table: output = output + ' BORDER' continue else: - output = output + ' %s=%s' %(string.upper(key), val) + output = output + ' %s="%s"' %(string.upper(key), val) return output @@ -284,7 +284,7 @@ class Document(Container): else: output = output + '>\n' output = output + Container.Format(self, indent) - output = output + '%s\n' % spaces + output = output + '%s\n%s\n' % (spaces, spaces) return output class HeadlessDocument(Document): -- cgit v1.2.3-70-g09d2