When trailing whitespace is removed, blackdoc would output two equal
lines, one prefixed with -, one with +. Since this is confusing,
it is better to colorize the removed whitespace.
(This won't happen at all if blackdoc is run after other formatters
that take care of trailing whitespace)
[x] Tests added
[x] Passes pre-commit run --all-files
[x] User visible changes (including notable bug fixes) are documented in changelog.rst
When trailing whitespace is removed,
blackdoc
would output two equal lines, one prefixed with-
, one with+
. Since this is confusing, it is better to colorize the removed whitespace.(This won't happen at all if
blackdoc
is run after other formatters that take care of trailing whitespace)pre-commit run --all-files
changelog.rst