Skip to content

DiffRowGenerator replaces < and > #41

@JoJoDeveloping

Description

@JoJoDeveloping

Expected Behavior

DiffRowGenerator would leave < and > the way they are

Actual Behavior

DiffRowGenerator replaces < and > with their html entities.

Steps to Reproduce the Problem

  1. Run DiffRowGenerator.create().generateDiffRows(List.of("<"), List.of("<"))
  2. Observe that the resulting String has &lt; instead of <

Specifications

  • Version: 4.0
  • Platform: Linux
  • Subsystem:

Using reportLinesUnchanged is not an option since that means tags are missing if an entire line is added/deleted. Having something like replaceSomeHTMLEntities with default true but optionally disableable would be nice, or being able to supply a general string normalisation function.

If needed/wanted I can PR this.

Metadata

Metadata

Assignees

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