sstadick / cargo-bundle-licenses

Generate a THIRDPARTY file with all licenses in a cargo project.
Apache License 2.0
86 stars 6 forks source link

YAML serializes a license containing a tab as one long double-quoted string #17

Open jwodder opened 1 year ago

jwodder commented 1 year ago

I'm not sure what can be done about this, as it may be down to the YAML format and/or serializer, but if cargo-bundle-licenses bundles a license that contains a tab character (which occurs in some copies of the Apache 2.0 license at the start of the http://www.apache.org/licenses/LICENSE-2.0 line telling you where to acquire a copy of the license) and outputs YAML, then the text of the license in the YAML document will all be on one 10k+ character line of the form text: " Apache License\n Version 2.0, January 2004\n.... I find this annoying and hard to read.

sstadick commented 1 year ago

My personal view on this is that it's not an issue. The YAML isn't intended to be human readable, but as an input to further tools that could create a nice display of the licenses involved. I would not oppose a PR to make this nicer though 👍