spdx/spdx-license-diff

Diff display problem when text is an input field for Black Duck

stephenkilbaneadi opened this issue ยท 10 comments

This browser extension is fantastic, and I'm using it a lot - thank you!

One context I'm using it in is to check the license texts in Black Duck. Black Duck displays each license on a form where attributes can be edited - including the license text itself. This means that the selected text is in a multi-line text input field. The search works okay, but when the diff is displayed, matching text is displayed as plain black-on-black (or something similar - nothing's readable, anyway). Where there are differences, they appear as normal, amid the sea of black. If I compare the same text displayed normally on a page - e.g. spdx.org - the diff shows up perfectly. I see the same problem for both Chrome and Firefox.

Thanks. Can you post a screenshot? We have a default color scheme which may be breaking in Blackduck. I only have access to Protex so I may not be able to test it myself.

spdx-diff-bug

As seen when comparing the MIT text.

Thanks. I just confirmed this isn't something I can see in Protex as it was changed in Black Duck. Can you provide the html for the form? You can save the page in chrome as HTML only. I don't know what BlackDuck is embedding in the page so you may want to scrub the html before you provide it.

Any chance I could mail it to you directly, rather than attaching it here. Just in case I'm missing something in the HTML that should be scrubbed?

Yes. Same name on gmail.

Thinking about this more, I'm thinking the solution may be to allow the results to go to a new tab. Any thoughts on that?

๐ŸŽ‰ This issue has been resolved in version 0.9.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

As a note, the feature is in the top right of the diff window now. Let me know if it doesn't work.