Skip to content

diff have a problem #22

@yangtuo

Description

@yangtuo

Expected Behavior

original new
This is a test senctence. This is a test for diffutils.
This is the second line.

Actual Behavior

original new
This is a test senctence. This is a test for diffutils.**
This is the second line.
         DiffRowGenerator generator = DiffRowGenerator.create()
			.showInlineDiffs(true)
			.inlineDiffByWord(true)
			.oldTag(f -> "~")
			.newTag(f -> "**")
			.build();
	List<DiffRow> rows = generator.generateDiffRows(
			Arrays.asList("This is a test senctence."),
			Arrays.asList("This is a test for diffutils.", "This is the second line."));

	System.out.println("|original|new|");
	System.out.println("|--------|---|");
	for (DiffRow row : rows) {
		System.out.println("|" + row.getOldLine() + "|" + row.getNewLine() + "|");
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions