diff options
-rw-r--r-- | CHANGES.rst | 5 | ||||
-rw-r--r-- | CONTRIBUTORS.txt | 1 | ||||
-rw-r--r-- | coverage/html.py | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index c2772238..26e31604 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -26,11 +26,16 @@ Unreleased (see `issue 1310`_). Now the signal handler is only used if you opt-in by setting ``[run] sigterm = true``. +- Added more keyboard shortcuts in the HTML report: ``[`` and ``]`` for next + file and previous file; ``u`` for up to the index; and ``?`` to open/close + the help panel. Thanks, `J. M. F. Tsang <pull 1364_>`_. + - On Python 3.11, the ``[toml]`` extra no longer installs tomli, instead using tomllib from the standard library. Thanks `Shantanu <pull 1359_>`_. .. _issue 1310: https://github.com/nedbat/coveragepy/issues/1310 .. _pull 1359: https://github.com/nedbat/coveragepy/pull/1359 +.. _pull 1364: https://github.com/nedbat/coveragepy/pull/1364 .. _changes_633: diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 36063579..cba3a3a7 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -75,6 +75,7 @@ Hugo van Kemenade Ilia Meerovich Imri Goldberg Ionel Cristian Mărieș +J. M. F. Tsang JT Olds Jerin Peter George Jessamyn Smith diff --git a/coverage/html.py b/coverage/html.py index 953b2db3..d160163f 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -258,9 +258,8 @@ class HtmlReporter: if self.extra_css: shutil.copyfile(self.config.extra_css, os.path.join(self.directory, self.extra_css)) - def html_file(self, fr, analysis, prev_fr=None, next_fr=None): - """Generate an HTML file for one source file, with links to the - previous and the next file, or to the index.""" + def html_file(self, fr, analysis, prev_fr, next_fr): + """Generate an HTML file for one source file.""" rootname = flat_rootname(fr.relative_filename()) html_filename = rootname + ".html" if prev_fr is not None: |