From 0ff7e68cebd273e32f481f4fec49342a1a97a18f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 8 Oct 2009 13:28:34 +0000 Subject: [PATCH] module-version can do html --- module-tools.py | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/module-tools.py b/module-tools.py index c6f88847..d4d5ff0c 100755 --- a/module-tools.py +++ b/module-tools.py @@ -249,13 +249,20 @@ class Module: if not hasattr(self,'body'): self.body='' self.body += '
' + text + '
' - def html_dump_header(self): + def html_print (self, txt): + if not self.options.www: + print txt + else: + self.html_store_pre(txt) + + @staticmethod + def html_dump_header(title): now=time.strftime("%Y-%m-%d %H:%M") print """ - Pending changes in %s + %s -

Pending changes in %s - status at %s

+

%s - status at %s