Improve diff op grouping for full matches

This changes the behavior of the diff op grouping function to return
an empty result if the diff is a full match.  This also adds an example
to demonstrate unified diff rendering.
This commit is contained in:
Armin Ronacher 2021-01-30 23:11:35 +01:00
parent 4459c5ee3a
commit 020701c4d5
5 changed files with 62 additions and 3 deletions

View file

@ -8,6 +8,8 @@ All notable changes to similar are documented here.
* Added virtual newline handling to `iter_changes`.
* Made unified diff support more flexible through the introduction of
the `UnifiedDiff` type.
* Fixed grouped diff operation to return an empty result if the diff
does not show any changes.
## 0.4.0