# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+# SPDX-License-Identifier: GPL-2.0-or-later
from __future__ import unicode_literals
initial_indent += self.list_item_prefix
indent += ' '
kwargs = {
- 'width': 66,
+ 'width': 72,
'initial_indent': initial_indent,
'subsequent_indent': indent
}
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
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')