From a5d8b176f993bfb75ade96499f2e2a942ed721e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Wed, 7 Oct 2020 17:59:00 +0200 Subject: [PATCH] Trim whitespaces from choices element --- types/oscal/nominal_catalog/param.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/oscal/nominal_catalog/param.go b/types/oscal/nominal_catalog/param.go index 9889e5f..93f6438 100644 --- a/types/oscal/nominal_catalog/param.go +++ b/types/oscal/nominal_catalog/param.go @@ -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, ", ")