nbdime
nbdime copied to clipboard
fix `_compare_mimedata`
Surprised this hasn't been noticed before. For example, this ensures minor modifications of image/svg+xml
are not erroneously reported as deleted/inserted.
For completeness, I also added comparison of application/json
mimedata, using json.dumps
I included the first commit in #543. I'm not sure if the JSON one makes sense, as we already have structured JSON differ :) At the very least, I think we would need to use a sorted JSON serializer to have it be reliable.
What are the advantages to diffing JSON outputs as strings as you see it?