Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork209
Closed
Labels

Description
Describe the bug
DiffRowGenerator returns too many diffs in special cases.
To Reproduce
Steps to reproduce the behavior:
DiffRowGenerator generator = DiffRowGenerator.create() .showInlineDiffs(true) .reportLinesUnchanged(true) .oldTag(f -> "~") .newTag(f -> "**") .mergeOriginalRevised(true)// .inlineDiffByWord(true) .build(); List<DiffRow> diffRows = generator.generateDiffRows(sortedRemovals, sortedAdditions);sortedRemovals:
["Ich möchte nicht mit einem Bot sprechen.", "Ich soll das schon wieder wiederholen?"]
sortedAdditions:
["Ich möchte nicht mehr mit dir sprechen. Leite mich weiter.", "Kannst du mich zum Kundendienst weiterleiten?"]
Expected behavior
diffRows should have size 2 but it has size 3.
System
- Java version 1.8
- Version 4.5
Setting inlineDiffByWord(true) does not produce the error.
