diff --git a/src/main/java/org/spdx/tag/CommonCode.java b/src/main/java/org/spdx/tag/CommonCode.java index 3193bfb..cd10f94 100644 --- a/src/main/java/org/spdx/tag/CommonCode.java +++ b/src/main/java/org/spdx/tag/CommonCode.java @@ -366,6 +366,14 @@ private static void printSnippet(SpdxSnippet spdxSnippet, PrintWriter out, println(out, constants.getProperty("PROP_SNIPPET_NAME") + name.get()); } + // snippet attribution text + if (!spdxSnippet.getAttributionText().isEmpty()) { + spdxSnippet.getAttributionText().forEach(s -> { + println(out, constants.getProperty("PROP_SNIPPET_ATTRIBUTION_TEXT") + + constants.getProperty("PROP_BEGIN_TEXT") + + s + constants.getProperty("PROP_END_TEXT")); + }); + } println(out, ""); }