Show gap lines instead of changes

GroupDocs.Comparison for Python via .NET lets you adjust the output appearance by replacing changed content with empty lines.

Replace changes with gap lines

Disable inserted/deleted content in the result and leave gaps where changes occurred.

import groupdocs.comparison as gc

with gc.Comparer("source.docx") as comparer:
    comparer.add("target.docx")
    options = gc.CompareOptions()
    options.show_inserted_content = False
    options.show_deleted_content = False
    options.leave_gaps = True
    comparer.compare("result.docx", options)

🔹 Use case: Provide redacted-style diffs that keep layout alignment without showing actual changed text.

The result is as follows:

Default resultResult without LeaveGaps property
Default resultResult with LeaveGaps property
Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.