From 008f3f68d0c11bea942707417fcd7ce510ce612c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 8 Oct 2009 14:52:54 +0000 Subject: [PATCH] cosmetic --- module-tools.py | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/module-tools.py b/module-tools.py index d4d5ff0c..0a3be59f 100755 --- a/module-tools.py +++ b/module-tools.py @@ -253,11 +253,18 @@ class Module: if not self.options.www: print txt else: - self.html_store_pre(txt) + if not hasattr(self,'in_list') or not self.in_list: + self.html_store_raw('') @staticmethod def html_dump_header(title): - now=time.strftime("%Y-%m-%d %H:%M") + nowdate=time.strftime("%Y-%m-%d") + nowtime=time.strftime("%H:%M") print """ @@ -272,9 +279,9 @@ span.error {text-weight:bold; color: red; } -

%s - status at %s

+

%s - status on %s at %s