jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Wrong indentation for unchanged values in HTML diff

Open tg666 opened this issue 4 months ago • 1 comments

While the changed values are visually nicely indented and formatted, the unchanged ones have their indentation aligned with the end of the key (this applies to both objects and arrays).

The reason is that while the changed values are rendered as nested <ul><li>, the unchanged values are simply rendered entirely in the <pre> tag.

Image

tg666 avatar Sep 12 '25 05:09 tg666

I have also encountered this problem. Do you have any good solutions? @tg666

MrHeer avatar Nov 28 '25 08:11 MrHeer