This commit is contained in:
taizan-hokouto
2020-12-05 14:43:56 +09:00
parent 865e4b5fab
commit 2c8a883ee3

View File

@@ -86,7 +86,7 @@ class HTMLArchiver(ChatProcessor):
Count of total lines written to the file. Count of total lines written to the file.
""" """
if chat_components is None or len(chat_components) == 0: if chat_components is None or len(chat_components) == 0:
return self.save_path ,self.counter return self.save_path, self.counter
for c in self.processor.process(chat_components).items: for c in self.processor.process(chat_components).items:
self.tmp_fp.write( self.tmp_fp.write(
self._parse_html_line(( self._parse_html_line((
@@ -159,7 +159,7 @@ class HTMLArchiver(ChatProcessor):
# write header # write header
outfile.writelines(( outfile.writelines((
HEADER_HTML, self._create_styles(), '</head>\n', HEADER_HTML, self._create_styles(), '</head>\n',
'<body>\n', '<table class="css">\n', '<body>\n', '<table class="css">\n',
self._parse_table_header(fmt_headers))) self._parse_table_header(fmt_headers)))
# write body # write body
fp = open(self.tmp_filename, mode="r", encoding="utf-8") fp = open(self.tmp_filename, mode="r", encoding="utf-8")