Skip to content

Commit

Permalink
Removing extra whitespace from the end of a Document Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuraiAku committed Jan 17, 2024
1 parent cd685f7 commit cfdb192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spdxBuild.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function generateSPDX(docData::spdxCreationData= spdxCreationData(), sbomRegistr
ismissing(docData.DocumentComment) || (spdxDoc.DocumentComment= docData.DocumentComment)

# Add description of the registries in use
spdxDoc.DocumentComment= (ismissing(spdxDoc.DocumentComment) ? "" : "$(spdxDoc.DocumentComment)\n\n") * "Registries used for populating Package data:\n"
spdxDoc.DocumentComment= (ismissing(spdxDoc.DocumentComment) ? "" : "$(spdxDoc.DocumentComment)\n\n") * "Registries used for populating Package data:"
active_registries= reachable_registries()
for reg in active_registries
if reg.name in sbomRegistries
spdxDoc.DocumentComment= spdxDoc.DocumentComment *
"$(reg.name) registry: $(reg.repo)\n$(reg.description)\n\n"
"\n$(reg.name) registry: $(reg.repo)\n$(reg.description)"
end
end

Expand Down

0 comments on commit cfdb192

Please sign in to comment.