Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

diff have a problem #22

Closed
Closed
@yangtuo

Description

@yangtuo

Expected Behavior

originalnew
This is a testsenctence.This is a testfor diffutils.
This is the second line.

Actual Behavior

originalnew
This is a testsenctence.This is a testfor 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


      [8]ページ先頭

      ©2009-2025 Movatter.jp