gfw.common.diff#
General utilities for generating diffs between objects.
Functions
Generate a rich diff of two objects' pretty-printed representations. |
|
Generate a line-by-line diff of two strings with rich markup. |
|
Render side-by-side panels of diff strings for visual comparison. |
- diff_lines(a, b)[source]#
Generate a line-by-line diff of two strings with rich markup.
- Parameters:
- Returns:
a_diff: The first string annotated with diff highlights.
b_diff: The second string annotated with diff highlights.
changed: True if any differences were found, False otherwise.
- Return type:
A tuple of (a_diff, b_diff, changed) where