Skip to content

Commit 94f0330

Browse files
Make license texts YAML safe
License texts were producing invalid YAML files when there were different indentations in the text along with empty newlines, and to make these texts YAML safe we add a single space to empty newlines to license texts with different indentation levels. Reference: #3219 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 80ecd35 commit 94f0330

30 files changed

+914
-912
lines changed

src/licensedcode/data/licenses/agpl-3.0.LICENSE

Lines changed: 117 additions & 117 deletions
Large diffs are not rendered by default.

src/licensedcode/data/licenses/apache-2.0.LICENSE

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,50 +29,50 @@ ignorable_urls:
2929
Apache License
3030
Version 2.0, January 2004
3131
http://www.apache.org/licenses/
32-
32+
3333
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
34-
34+
3535
1. Definitions.
36-
36+
3737
"License" shall mean the terms and conditions for use, reproduction,
3838
and distribution as defined by Sections 1 through 9 of this document.
39-
39+
4040
"Licensor" shall mean the copyright owner or entity authorized by
4141
the copyright owner that is granting the License.
42-
42+
4343
"Legal Entity" shall mean the union of the acting entity and all
4444
other entities that control, are controlled by, or are under common
4545
control with that entity. For the purposes of this definition,
4646
"control" means (i) the power, direct or indirect, to cause the
4747
direction or management of such entity, whether by contract or
4848
otherwise, or (ii) ownership of fifty percent (50%) or more of the
4949
outstanding shares, or (iii) beneficial ownership of such entity.
50-
50+
5151
"You" (or "Your") shall mean an individual or Legal Entity
5252
exercising permissions granted by this License.
53-
53+
5454
"Source" form shall mean the preferred form for making modifications,
5555
including but not limited to software source code, documentation
5656
source, and configuration files.
57-
57+
5858
"Object" form shall mean any form resulting from mechanical
5959
transformation or translation of a Source form, including but
6060
not limited to compiled object code, generated documentation,
6161
and conversions to other media types.
62-
62+
6363
"Work" shall mean the work of authorship, whether in Source or
6464
Object form, made available under the License, as indicated by a
6565
copyright notice that is included in or attached to the work
6666
(an example is provided in the Appendix below).
67-
67+
6868
"Derivative Works" shall mean any work, whether in Source or Object
6969
form, that is based on (or derived from) the Work and for which the
7070
editorial revisions, annotations, elaborations, or other modifications
7171
represent, as a whole, an original work of authorship. For the purposes
7272
of this License, Derivative Works shall not include works that remain
7373
separable from, or merely link (or bind by name) to the interfaces of,
7474
the Work and Derivative Works thereof.
75-
75+
7676
"Contribution" shall mean any work of authorship, including
7777
the original version of the Work and any modifications or additions
7878
to that Work or Derivative Works thereof, that is intentionally
@@ -86,18 +86,18 @@ ignorable_urls:
8686
Licensor for the purpose of discussing and improving the Work, but
8787
excluding communication that is conspicuously marked or otherwise
8888
designated in writing by the copyright owner as "Not a Contribution."
89-
89+
9090
"Contributor" shall mean Licensor and any individual or Legal Entity
9191
on behalf of whom a Contribution has been received by Licensor and
9292
subsequently incorporated within the Work.
93-
93+
9494
2. Grant of Copyright License. Subject to the terms and conditions of
9595
this License, each Contributor hereby grants to You a perpetual,
9696
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
9797
copyright license to reproduce, prepare Derivative Works of,
9898
publicly display, publicly perform, sublicense, and distribute the
9999
Work and such Derivative Works in Source or Object form.
100-
100+
101101
3. Grant of Patent License. Subject to the terms and conditions of
102102
this License, each Contributor hereby grants to You a perpetual,
103103
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
@@ -113,24 +113,24 @@ ignorable_urls:
113113
or contributory patent infringement, then any patent licenses
114114
granted to You under this License for that Work shall terminate
115115
as of the date such litigation is filed.
116-
116+
117117
4. Redistribution. You may reproduce and distribute copies of the
118118
Work or Derivative Works thereof in any medium, with or without
119119
modifications, and in Source or Object form, provided that You
120120
meet the following conditions:
121-
121+
122122
(a) You must give any other recipients of the Work or
123123
Derivative Works a copy of this License; and
124-
124+
125125
(b) You must cause any modified files to carry prominent notices
126126
stating that You changed the files; and
127-
127+
128128
(c) You must retain, in the Source form of any Derivative Works
129129
that You distribute, all copyright, patent, trademark, and
130130
attribution notices from the Source form of the Work,
131131
excluding those notices that do not pertain to any part of
132132
the Derivative Works; and
133-
133+
134134
(d) If the Work includes a "NOTICE" text file as part of its
135135
distribution, then any Derivative Works that You distribute must
136136
include a readable copy of the attribution notices contained
@@ -147,27 +147,27 @@ ignorable_urls:
147147
or as an addendum to the NOTICE text from the Work, provided
148148
that such additional attribution notices cannot be construed
149149
as modifying the License.
150-
150+
151151
You may add Your own copyright statement to Your modifications and
152152
may provide additional or different license terms and conditions
153153
for use, reproduction, or distribution of Your modifications, or
154154
for any such Derivative Works as a whole, provided Your use,
155155
reproduction, and distribution of the Work otherwise complies with
156156
the conditions stated in this License.
157-
157+
158158
5. Submission of Contributions. Unless You explicitly state otherwise,
159159
any Contribution intentionally submitted for inclusion in the Work
160160
by You to the Licensor shall be under the terms and conditions of
161161
this License, without any additional terms or conditions.
162162
Notwithstanding the above, nothing herein shall supersede or modify
163163
the terms of any separate license agreement you may have executed
164164
with Licensor regarding such Contributions.
165-
165+
166166
6. Trademarks. This License does not grant permission to use the trade
167167
names, trademarks, service marks, or product names of the Licensor,
168168
except as required for reasonable and customary use in describing the
169169
origin of the Work and reproducing the content of the NOTICE file.
170-
170+
171171
7. Disclaimer of Warranty. Unless required by applicable law or
172172
agreed to in writing, Licensor provides the Work (and each
173173
Contributor provides its Contributions) on an "AS IS" BASIS,
@@ -177,7 +177,7 @@ ignorable_urls:
177177
PARTICULAR PURPOSE. You are solely responsible for determining the
178178
appropriateness of using or redistributing the Work and assume any
179179
risks associated with Your exercise of permissions under this License.
180-
180+
181181
8. Limitation of Liability. In no event and under no legal theory,
182182
whether in tort (including negligence), contract, or otherwise,
183183
unless required by applicable law (such as deliberate and grossly
@@ -189,7 +189,7 @@ ignorable_urls:
189189
work stoppage, computer failure or malfunction, or any and all
190190
other commercial damages or losses), even if such Contributor
191191
has been advised of the possibility of such damages.
192-
192+
193193
9. Accepting Warranty or Additional Liability. While redistributing
194194
the Work or Derivative Works thereof, You may choose to offer,
195195
and charge a fee for, acceptance of support, warranty, indemnity,
@@ -200,11 +200,11 @@ ignorable_urls:
200200
defend, and hold each Contributor harmless for any liability
201201
incurred by, or claims asserted against, such Contributor by reason
202202
of your accepting any such warranty or additional liability.
203-
203+
204204
END OF TERMS AND CONDITIONS
205-
205+
206206
APPENDIX: How to apply the Apache License to your work.
207-
207+
208208
To apply the Apache License to your work, attach the following
209209
boilerplate notice, with the fields enclosed by brackets "[]"
210210
replaced with your own identifying information. (Don't include
@@ -213,15 +213,15 @@ ignorable_urls:
213213
file or class name and description of purpose be included on the
214214
same "printed page" as the copyright notice for easier
215215
identification within third-party archives.
216-
216+
217217
Copyright [yyyy] [name of copyright owner]
218-
218+
219219
Licensed under the Apache License, Version 2.0 (the "License");
220220
you may not use this file except in compliance with the License.
221221
You may obtain a copy of the License at
222-
222+
223223
http://www.apache.org/licenses/LICENSE-2.0
224-
224+
225225
Unless required by applicable law or agreed to in writing, software
226226
distributed under the License is distributed on an "AS IS" BASIS,
227227
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

src/licensedcode/data/licenses/artistic-clarified.LICENSE

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,94 +13,94 @@ other_urls:
1313
---
1414

1515
The Clarified Artistic License
16-
16+
1717
Preamble
18-
18+
1919
The intent of this document is to state the conditions under which a
2020
Package may be copied, such that the Copyright Holder maintains some
2121
semblance of artistic control over the development of the package,
2222
while giving the users of the package the right to use and distribute
2323
the Package in a more-or-less customary fashion, plus the right to make
2424
reasonable modifications.
25-
25+
2626
Definitions:
27-
27+
2828
"Package" refers to the collection of files distributed by the
2929
Copyright Holder, and derivatives of that collection of files
3030
created through textual modification.
31-
31+
3232
"Standard Version" refers to such a Package if it has not been
3333
modified, or has been modified in accordance with the wishes
3434
of the Copyright Holder as specified below.
35-
35+
3636
"Copyright Holder" is whoever is named in the copyright or
3737
copyrights for the package.
38-
38+
3939
"You" is you, if you're thinking about copying or distributing
4040
this Package.
41-
41+
4242
"Distribution fee" is a fee you charge for providing a copy
4343
of this Package to another party.
44-
44+
4545
"Freely Available" means that no fee is charged for the right to
4646
use the item, though there may be fees involved in handling the
4747
item. It also means that recipients of the item may redistribute
4848
it under the same conditions they received it.
49-
49+
5050
1. You may make and give away verbatim copies of the source form of the
5151
Standard Version of this Package without restriction, provided that you
5252
duplicate all of the original copyright notices and associated disclaimers.
53-
53+
5454
2. You may apply bug fixes, portability fixes and other modifications
5555
derived from the Public Domain, or those made Freely Available, or from
5656
the Copyright Holder. A Package modified in such a way shall still be
5757
considered the Standard Version.
58-
58+
5959
3. You may otherwise modify your copy of this Package in any way, provided
6060
that you insert a prominent notice in each changed file stating how and
6161
when you changed that file, and provided that you do at least ONE of the
6262
following:
63-
63+
6464
a) place your modifications in the Public Domain or otherwise make them
6565
Freely Available, such as by posting said modifications to Usenet or an
6666
equivalent medium, or placing the modifications on a major network
6767
archive site allowing unrestricted access to them, or by allowing the
6868
Copyright Holder to include your modifications in the Standard Version
6969
of the Package.
70-
70+
7171
b) use the modified Package only within your corporation or organization.
72-
72+
7373
c) rename any non-standard executables so the names do not conflict
7474
with standard executables, which must also be provided, and provide
7575
a separate manual page for each non-standard executable that clearly
7676
documents how it differs from the Standard Version.
77-
77+
7878
d) make other distribution arrangements with the Copyright Holder.
79-
79+
8080
e) permit and encourge anyone who receives a copy of the modified Package
8181
permission to make your modifications Freely Available
8282
in some specific way.
83-
83+
8484

8585
4. You may distribute the programs of this Package in object code or
8686
executable form, provided that you do at least ONE of the following:
87-
87+
8888
a) distribute a Standard Version of the executables and library files,
8989
together with instructions (in the manual page or equivalent) on where
9090
to get the Standard Version.
91-
91+
9292
b) accompany the distribution with the machine-readable source of
9393
the Package with your modifications.
94-
94+
9595
c) give non-standard executables non-standard names, and clearly
9696
document the differences in manual pages (or equivalent), together
9797
with instructions on where to get the Standard Version.
98-
98+
9999
d) make other distribution arrangements with the Copyright Holder.
100-
100+
101101
e) offer the machine-readable source of the Package, with your
102102
modifications, by mail order.
103-
103+
104104
5. You may charge a distribution fee for any distribution of this Package.
105105
If you offer support for this Package, you may charge any fee you choose
106106
for that support. You may not charge a license fee for the right to use
@@ -113,7 +113,7 @@ If the Package includes an interpreter, You may embed this Package's
113113
interpreter within an executable of yours (by linking); this shall be
114114
construed as a mere form of aggregation, provided that the complete
115115
Standard Version of the interpreter is so embedded.
116-
116+
117117
6. The scripts and library files supplied as input to or produced as
118118
output from the programs of this Package do not automatically fall
119119
under the copyright of this Package, but belong to whoever generated
@@ -125,26 +125,26 @@ neither be construed as a distribution of this Package nor shall it
125125
fall under the restrictions of Paragraphs 3 and 4, provided that you do
126126
not represent such an executable image as a Standard Version of this
127127
Package.
128-
128+
129129
7. C subroutines (or comparably compiled subroutines in other
130130
languages) supplied by you and linked into this Package in order to
131131
emulate subroutines and variables of the language defined by this
132132
Package shall not be considered part of this Package, but are the
133133
equivalent of input as in Paragraph 6, provided these subroutines do
134134
not change the language in any way that would cause it to fail the
135135
regression tests for the language.
136-
136+
137137
8. Aggregation of the Standard Version of the Package with a commercial
138138
distribution is always permitted provided that the use of this Package
139139
is embedded; that is, when no overt attempt is made to make this Package's
140140
interfaces visible to the end user of the commercial distribution.
141141
Such use shall not be construed as a distribution of this Package.
142-
142+
143143
9. The name of the Copyright Holder may not be used to endorse or promote
144144
products derived from this software without specific prior written permission.
145-
145+
146146
10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
147147
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
148148
WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
149-
149+
150150
The End

0 commit comments

Comments
 (0)