# Show gap lines instead of changes This article explains how to adjust the display of the output document so that the changed content is replaced with empty lines in GroupDocs.Comparison for Java. --- [GroupDocs.Comparison](https://products.groupdocs.com/comparison/java) allows you to adjust appearance of the output document. By default, changes from the two input files (source and target files) are added to the output document and highlighted. Use the [ShowInsertedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowInsertedContent-boolean-) and [ShowDeletedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowDeletedContent-boolean-) properties to configure the content of the output file. Use the [LeaveGaps](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setLeaveGaps-boolean-) property to adjust the display of the output document, which allows to replace changed content with empty lines. To use this property, activate the [ShowInsertedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowInsertedContent-boolean-) and [ShowDeletedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowDeletedContent-boolean-) properties. Follow these steps to adjust appearance of the output document: 1. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer/) object. Specify the source file path or stream. 2. Call the [add()](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer/#add-java.lang.String-) method. Specify the target file path or stream. 3. Instantiate the [CompareOptions](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/) object. Set the [ShowInsertedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowInsertedContent-boolean-), [ShowDeletedContent](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setShowDeletedContent-boolean-), and/or [LeaveGaps](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/#setLeaveGaps-boolean-) properties. 4. Call the [compare()](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer/#compare-java.lang.String-) method. Specify the [CompareOptions](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions/) object from the previous step. The following code snippet shows how get the desired result {{< tabs "example1">}} {{< tab "Java" >}} ```java import com.groupdocs.comparison.Comparer; import com.groupdocs.comparison.options.CompareOptions; // ... try (Comparer comparer = new Comparer("source.docx")) { comparer.add("target.docx"); CompareOptions options = new CompareOptions(); options.setShowInsertedContent(false); options.setShowDeletedContent(false); options.setLeaveGaps(true); comparer.compare(resultPath, options); } ``` {{< /tab >}} {{< /tabs >}} The result is as follows: | Default result | Result without LeaveGaps property | | :-----------------------------------------------------------: | :--------------------------------------------------------------: | | ![](https://docs.groupdocs.com/comparison/java/images/show-gap-lines-default-result.png) | ![](https://docs.groupdocs.com/comparison/java/images/show-gap-lines-without-leavegaps.png) | | Default result | Result with LeaveGaps property | | :-----------------------------------------------------------: | :-----------------------------------------------------------: | | ![](https://docs.groupdocs.com/comparison/java/images/show-gap-lines-default-result.png) | ![](https://docs.groupdocs.com/comparison/java/images/show-gap-lines-with-leavegaps.png) |