diff options
| author | klm | 1998-04-07 14:59:10 +0000 |
|---|---|---|
| committer | klm | 1998-04-07 14:59:10 +0000 |
| commit | acb8beec9a9df31e789623af1f5aec97c5d1943d (patch) | |
| tree | 3f2000317439d703e6f7ea9d2c54b4946c487d70 /Mailman/htmlformat.py | |
| parent | 8e24cb2aa28b223720d25f812abbfa7e73166019 (diff) | |
| download | mailman-acb8beec9a9df31e789623af1f5aec97c5d1943d.tar.gz mailman-acb8beec9a9df31e789623af1f5aec97c5d1943d.tar.zst mailman-acb8beec9a9df31e789623af1f5aec97c5d1943d.zip | |
Diffstat (limited to 'Mailman/htmlformat.py')
| -rw-r--r-- | Mailman/htmlformat.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index a06d907d6..698ef04f2 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -240,17 +240,24 @@ class Document(Container): def SetTitle(self, title): self.title = title - def Format(self, indent=0): + def Format(self, indent=0, **kw): output = 'Content-type: text/html\n\n' spaces = ' ' * indent output = output + spaces -# output = output + '<html>\n' + output = output + '<html>\n' if self.title: output = '%s%s<TITLE>%s</TITLE>\n' % (output, spaces, self.title) -# output = '%s%s<body>\n' % (output, ' '*indent) + output = '%s%s</html>\n%s<body' % (output, spaces, spaces) + quals = [] + for k, v in kw.items(): + quals.append('%s="%s"' % (k, v)) + if quals: + output = output + ' %s>\n' % string.join(quals, " ") + else: + output = output + '>\n' output = output + Container.Format(self, indent) -# output = '%s\n%s</body>\n%s</html>\n' % (output, spaces, spaces) + output = output + '%s</html>\n' % spaces return output class StdContainer(Container): |
