Closed sschuberth closed 6 years ago
The way we are maintaining the license information in the license-list-XML github repository it is not feasible to retain the formatting of the original text since XML removes the white space and we do not have enough tags to retain all of the formatting.
That being said, we could do a better job of formatting the text and making it look prettier.
The code for this has actually moved to a different project: LicenseListPublish
Moving issue to LicenseListPublisher: https://github.com/spdx/license-list-XML/issues/1924
At the example of Apache-2.0, when extracting the licenseText string to a file, I'd expect that file to be exactly formatted like the original plain text license including leading spaces and blank lines. However, the JSON string is formatted like
(note the missing leading spaces but added trailing spaces) which not only does not match the original text but also is quite ugly.