Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLFormatter option for replace tags #118

Closed

Conversation

Tomp0801
Copy link
Contributor

Add option to XMLFormatter to use replace tags, see issue #112

  • in _make_diff_tags after diffing, neighboring delete/insert diffs are joined to a replace tag
  • the deleted text is added as an attribute ("old-text")
  • the inserted text is the element's text
  • In the test cases, the hardcoded placeholders in other tests needed to be updated (added an offset of 2, as there are 2 more default tags)

@regebro
Copy link
Contributor

regebro commented Jan 4, 2024

Merged, thanks!

@regebro regebro closed this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants