bpo-43689: improve documentation for Differ (GH-25132)

Lines beginning with ``?`` try to help understanding the given diff.

The output can be hard to understand when it contains whitespace characters, such as spaces, tabs or line breaks.

While previously only tabs were mentioned, now all are listed.

Automerge-Triggered-By: GH:rhettinger
This commit is contained in:
Jürgen Gmach 2022-05-10 22:57:12 +02:00 committed by GitHub
parent 07b34926d3
commit fe1c5ba608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ diffs. For comparing directories and files, see also, the :mod:`filecmp` module.
Lines beginning with '``?``' attempt to guide the eye to intraline differences,
and were not present in either input sequence. These lines can be confusing if
the sequences contain tab characters.
the sequences contain whitespace characters, such as spaces, tabs or line breaks.
.. class:: HtmlDiff

View File

@ -0,0 +1 @@
The ``Differ`` documentation now also mentions other whitespace characters, which make it harder to understand the diff output.