private static void removeExcessEmptyRows(DiffLines leftLines, DiffLines rightLines) {

		DiffLines newLeftLines = leftLines.createEmptyClone();
		DiffLines newRightLines = rightLines.createEmptyClone();

		leftLines.removeLeadingEmptyRows();
		rightLines.removeLeadingEmptyRows();

		// 
		// For the lists, condense areas with empty rows by adjusting the blocks with empty rows
		// so that the empty rows are at the bottom.  This seems to be aesthetically more pleasing
		// when viewing the diff.
		// 
		int end = Math.min(leftLines.size(), rightLines.size());
		condenseSharedRange(leftLines, rightLines, newLeftLines, newRightLines, 0, end);

		// handle remaining list elements from the longer list
		copyRealLines(leftLines, newLeftLines, end);
		copyRealLines(rightLines, newRightLines, end);

		// reset the contents with the new layout
		leftLines.installNewLines(newLeftLines);
		rightLines.installNewLines(newRightLines);
	}
Removes empty rows that are no longer necessary for alignment (it may add new empty rows)
Ghidra/Features/Base/src/main/java/ghidra/app/util/html/diff/DataTypeDiffBuilder.java