spdx / LicenseListPublisher

Tool that generates license data found in the license-list-data repository from the license-list-XML source
Apache License 2.0
11 stars 18 forks source link

Formatting issue with standardLicenseHeader in Apache-2.0.json #172

Closed nandita-v closed 11 months ago

nandita-v commented 1 year ago

It looks like there is a formatting issue with the standardLicenseHeader field in the Apache-2.0.json file. The standardLicenseHeader field has two '\n' between every line in the header which seems inconsistent with the output from the html file and the text file. Attaching screenshots below:

Expected standard license header:

Correct Output

Standard license header from the JSON file:

Incorrect Output
goneall commented 1 year ago

In looking at the license XML file, the <br/> is at the start of the lines in the license header.

I suspect this may be a problem with the licenseListPublisher - I would expect there to be only a single linefeed.

I'll transfer this issue.

It will be a couple weeks before I can look at this myself - if there are any other Java folks out there willing to help, please let me know and I can give you pointers where to look.

mochaaP commented 1 year ago

This also broke Apache-2.0.json's standardLicenseHeaderTemplate field.


Blocking:
goneall commented 1 year ago

@mochaaP Thanks for pointing this out - from looking at the downstream use - it looks like you have a workaround for now. If this is blocking any project please let me know and I'll bump up the priority for a fix. Of course, any help from other volunteers would be most welcome.