Skip to content

Commit 833d86a

Browse files
committed
documentation updates per code review
1 parent 387cfe6 commit 833d86a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ difflib
9999
This can be controlled by :ref:`environment variables
100100
<using-on-controlling-color>`.
101101
(Contributed by Douglas Thor in :gh:`133725`.)
102+
102103
* Improved the styling of HTML diff pages generated by the :class:`difflib.HtmlDiff`
103104
class, and migrated the output to the HTML5 standard.
104105
(Contributed by Jiahao Li in :gh:`134580`.)

Lib/difflib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,9 @@ def unified_diff(a, b, fromfile='', tofile='', fromfiledate='',
11121112
For inputs that do not have trailing newlines, set the lineterm
11131113
argument to "" so that the output will be uniformly newline free.
11141114
1115-
Set *color* to ``True`` to enable output in color, similar to
1116-
:program:`git diff --color`. Even if enabled, it can be
1117-
:ref:`controlled using environment variables <using-on-controlling-color>`.
1115+
Set 'color' to True to enable output in color, similar to
1116+
'git diff --color'. Even if enabled, it can be
1117+
controlled using environment variables such as 'NO_COLOR'.
11181118
11191119
The unidiff format normally has a header for filenames and modification
11201120
times. Any or all of these may be specified using strings for

0 commit comments

Comments
 (0)