From e4cf02afa24fd9a8a8a670b5a064099e71d3e69d Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Mon, 11 Mar 2013 10:22:54 +0100 Subject: [PATCH] Added HTML output to the filtering module. --- filtering.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/filtering.py b/filtering.py index 2ddd3f9..d4f8676 100644 --- a/filtering.py +++ b/filtering.py @@ -48,6 +48,17 @@ __filtering_info_text__ = ("The following files were excluded from the statistic "specified exclusion patterns") class Filtering(Outputable): + def output_html(self): + if __filtered_files__: + filtering_xml = "
" + filtering_xml += "

" + __filtering_info_text__ + "."+ "

" + + for i in __filtered_files__: + filtering_xml += "

" + i + "

" + + filtering_xml += "

" + print(filtering_xml) + def output_text(self): if __filtered_files__: print("\n" + textwrap.fill(__filtering_info_text__ + ":", width=terminal.get_size()[0]))