@@ -50,7 +50,6 @@ public class DiffRowGenerator {
5050
5151 private final boolean showInlineDiffs ;
5252 private final boolean ignoreWhiteSpaces ;
53- private final boolean ignoreBlankLines ;
5453 private final String InlineOldTag ;
5554 private final String InlineNewTag ;
5655 private final String InlineOldCssClass ;
@@ -68,7 +67,6 @@ public class DiffRowGenerator {
6867 public static class Builder {
6968 private boolean showInlineDiffs = false ;
7069 private boolean ignoreWhiteSpaces = false ;
71- private boolean ignoreBlankLines = false ;
7270 private String InlineOldTag = "span" ;
7371 private String InlineNewTag = "span" ;
7472 private String InlineOldCssClass = "editOldInline" ;
@@ -97,16 +95,6 @@ public Builder ignoreWhiteSpaces(boolean val) {
9795 return this ;
9896 }
9997
100- /**
101- * Ignore blank lines in generating diff rows or not.
102- * @param val the value to set. Default: true.
103- * @return builder with configured ignoreBlankLines parameter
104- */
105- public Builder ignoreBlankLines (boolean val ) {
106- ignoreBlankLines = val ;
107- return this ;
108- }
109-
11098 /**
11199 * Set the tag used for displaying changes in the original text.
112100 * @param tag the tag to set. Without angle brackets. Default: span.
@@ -177,7 +165,6 @@ public DiffRowGenerator build() {
177165 private DiffRowGenerator (Builder builder ) {
178166 showInlineDiffs = builder .showInlineDiffs ;
179167 ignoreWhiteSpaces = builder .ignoreWhiteSpaces ; //
180- ignoreBlankLines = builder .ignoreBlankLines ; //
181168 InlineOldTag = builder .InlineOldTag ;
182169 InlineNewTag = builder .InlineNewTag ;
183170 InlineOldCssClass = builder .InlineOldCssClass ;
@@ -211,17 +198,6 @@ public List<DiffRow> generateDiffRows(List<String> original, List<String> revise
211198 return generateDiffRows (original , revised , DiffUtils .diff (original , revised , equalizer ));
212199 }
213200
214- private List <String > removeBlankLines (List <String > lines ) {
215- List <String > result = new ArrayList <String >();
216- for (String line : lines ) {
217- if (line .trim ().length () == 0 ) {
218- result .add ("" );
219- }
220- result .add (line );
221- }
222- return result ;
223- }
224-
225201 /**
226202 * Generates the DiffRows describing the difference between original and revised texts using the
227203 * given patch. Useful for displaying side-by-side diff.
0 commit comments