GroupDocs.Comparison for Python via .NET can produce redacted-style results in which inserted and deleted content is hidden and replaced with empty gap lines. The layout alignment is preserved so readers can see where changes occurred without seeing the changed text.
Use case: provide redacted-style diffs that keep layout alignment without showing actual changed text.
The result is as follows:
Default result
Result without LeaveGaps
Default result
Result with LeaveGaps
When to use gap lines
Gap-line output is useful in two scenarios:
Redacted-style diffs for regulatory review. Reviewers can see where changes occurred and how many without seeing the actual content — useful when the comparison artifact will be circulated more widely than the underlying documents.
Visual change density reporting. A gap-line result document gives a quick visual sense of how much was changed and where, without the cognitive load of reading every diff.
For full-content review use the default settings (show_inserted_content = True, show_deleted_content = True, leave_gaps = False).
Related topics
Show revisions — another way to produce a “clean” result by hiding revision markers.