Skip to content

Commit

Permalink
Trim whitespaces from choices element
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 7, 2020
1 parent 3cb1649 commit a5d8b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/oscal/nominal_catalog/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (param *Param) TextRepresentation() string {

choicesList := make([]string, len(param.Select.Alternatives))
for i, v := range param.Select.Alternatives {
choicesList[i] = string(v.Raw)
choicesList[i] = strings.TrimSpace(string(v.Raw))
}
choices := strings.Join(choicesList, ", ")

Expand Down

0 comments on commit a5d8b17

Please sign in to comment.