Skip to content

Commit

Permalink
Merge pull request #95 from carmenbianca/matching-snippets
Browse files Browse the repository at this point in the history
Postulate that snippet tags be closed
  • Loading branch information
carmenbianca authored Oct 17, 2024
2 parents a984435 + fdfb440 commit 12d01af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ This is the change log for the REUSE Specification.

### Fixed

- Clarified that snippet tags must be closed. This was technically already the
case with a certain reading of the SPDX specification, but it has now been
made explicit.

### Security

## 3.2 - 2024-07-03
Expand Down
7 changes: 5 additions & 2 deletions site/content/en/spec-3.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,15 @@ An example of a comment header:
#### In-line Snippet comments

Sometimes Licensing Information only applies to a certain Snippet instead of the
whole Commentable File. For these cases SPDX snippet tags MUST be used for that
Snippet (as defined in [SPDX Specification, Annex
whole Commentable File. You SHOULD use SPDX snippets to license these Snippets.
When implementing SPDX snippets, you MUST use SPDX snippet tags (as defined in
[SPDX Specification, Annex
H](https://spdx.github.io/spdx-spec/v2.3/file-tags/#h3-snippet-tags-format)).
This means that Copyright Notices inside of Snippets MUST be prefixed with
`SPDX-SnippetCopyrightText`.

Each SPDX snippet that is opened MUST be closed with `SPDX-SnippetEnd`.

Like with comment headers, the SPDX snippet tags SHOULD be commented.

A Snippet SHOULD contain both a Copyright Notice and an SPDX License Expression.
Expand Down

0 comments on commit 12d01af

Please sign in to comment.