tests: add regression tests for Follow TCP Stream
[metze/wireshark/wip.git] / tools / html2text.py
index 22eb84d112f0a02cff13c3351367f1d3abc84d00..7e783787e4d9423f913ffeda80415a6767ac1ac2 100755 (executable)
@@ -64,7 +64,7 @@ class TextHTMLParser(HTMLParser):
             initial_indent += self.list_item_prefix
             indent += '    '
         kwargs = {
-            'width': 66,
+            'width': 72,
             'initial_indent': initial_indent,
             'subsequent_indent': indent
         }
@@ -143,7 +143,7 @@ class TextHTMLParser(HTMLParser):
             self.skip_wrap = False
         if tag == 'a' and self.href:
             self.footnotes.append(self.href)
-            self.text_block += '[{}]'.format(len(self.footnotes))
+            self.text_block += '[{0}]'.format(len(self.footnotes))
         if tag in self.ignore_tags:
             self.ignore_level -= 1
 
@@ -165,7 +165,7 @@ class TextHTMLParser(HTMLParser):
             self.indent_levels = [1, 1]
             footnote_num = 1
             for href in self.footnotes:
-                self.text_block += '{:>2}. {}\n'.format(footnote_num, href)
+                self.text_block += '{0:>2}. {0}\n'.format(footnote_num, href)
                 footnote_num += 1
                 self._commit_block('\n')