@@ -400,7 +400,8 @@ public Builder ignoreWhiteSpaces(boolean val) {
400
400
}
401
401
402
402
/**
403
- * Give the originial old and new text lines to Diffrow without any additional processing.
403
+ * Give the originial old and new text lines to Diffrow without any additional processing and without any tags to
404
+ * highlight the change.
404
405
*
405
406
* @param val the value to set. Default: false.
406
407
* @return builder with configured reportLinesUnWrapped parameter
@@ -433,7 +434,7 @@ public Builder newTag(Function<Boolean, String> generator) {
433
434
}
434
435
435
436
/**
436
- * Set the column with of generated lines of original and revised texts.
437
+ * Set the column width of generated lines of original and revised texts.
437
438
*
438
439
* @param width the width to set. Making it < 0 doesn't have any sense. Default 80. @return builder with config
439
440
* ured ignoreBlankLines parameter
@@ -466,19 +467,38 @@ public Builder mergeOriginalRevised(boolean mergeOriginalRevised) {
466
467
}
467
468
468
469
/**
469
- * Per default each character is separatly processed. This variant introduces processing by word, which should
470
- * deliver no in word changes.
470
+ * Per default each character is separatly processed. This variant introduces processing by word, which does not
471
+ * deliver in word changes. Therefore the whole word will be tagged as changed:
472
+ *
473
+ * <pre>
474
+ * false: (aBa : aba) -- changed: a(B)a : a(b)a
475
+ * true: (aBa : aba) -- changed: (aBa) : (aba)
476
+ * </pre>
471
477
*/
472
478
public Builder inlineDiffByWord (boolean inlineDiffByWord ) {
473
479
inlineDiffSplitter = inlineDiffByWord ? SPLITTER_BY_WORD : SPLITTER_BY_CHARACTER ;
474
480
return this ;
475
481
}
476
482
483
+ /**
484
+ * To provide some customized splitting a splitter can be provided. Here someone could think about sentence splitter,
485
+ * comma splitter or stuff like that.
486
+ *
487
+ * @param inlineDiffSplitter
488
+ * @return
489
+ */
477
490
public Builder inlineDiffBySplitter (Function <String , List <String >> inlineDiffSplitter ) {
478
491
this .inlineDiffSplitter = inlineDiffSplitter ;
479
492
return this ;
480
493
}
481
494
495
+ /**
496
+ * By default DiffRowGenerator preprocesses lines for HTML output. Tabs and special HTML characters like "<"
497
+ * are replaced with its encoded value. To change this you can provide a customized line normalizer here.
498
+ *
499
+ * @param lineNormalizer
500
+ * @return
501
+ */
482
502
public Builder lineNormalizer (Function <String , String > lineNormalizer ) {
483
503
this .lineNormalizer = lineNormalizer ;
484
504
return this ;
0 commit comments