diff options
| author | bwarsaw | 2000-03-22 04:24:41 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-22 04:24:41 +0000 |
| commit | c46a01a36e8a7079f00ec2779afe43a3fc34ba1f (patch) | |
| tree | 3e0c8b861a103af6ac27f7e5e2c9e16942c56d26 /Mailman/htmlformat.py | |
| parent | af602f6847e96918634589dd1b5aa90dab092183 (diff) | |
| download | mailman-c46a01a36e8a7079f00ec2779afe43a3fc34ba1f.tar.gz mailman-c46a01a36e8a7079f00ec2779afe43a3fc34ba1f.tar.zst mailman-c46a01a36e8a7079f00ec2779afe43a3fc34ba1f.zip | |
Jim Tittsler finds more buglets with the generated HTML:
My /mailman/listinfo page was missing a </BODY> 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.
Diffstat (limited to 'Mailman/htmlformat.py')
| -rw-r--r-- | Mailman/htmlformat.py | 8 |
1 files changed, 4 insertions, 4 deletions
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</html>\n' % spaces + output = output + '%s</body>\n%s</html>\n' % (spaces, spaces) return output class HeadlessDocument(Document): |
