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

Line feeds added in JSON for seeAlso URLs #49

Closed goneall closed 5 years ago

goneall commented 5 years ago

This happens if there is a linefeed in the source XML. For example:

      <crossRefs>
         <crossRef>http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
         </crossRef>
      </crossRefs>

will produce:

  "seeAlso": [
    "http://www.libpng.org/pub/png/src/libpng-LICENSE.txt\n         "
  ],

This was originally reported against the licenseListData repo: https://github.com/spdx/license-list-data/issues/50

goneall commented 5 years ago

Fixed with PR #53