diff --git a/src/pkg/common/oscal/component.go b/src/pkg/common/oscal/component.go index 5a970cfc..de803e23 100644 --- a/src/pkg/common/oscal/component.go +++ b/src/pkg/common/oscal/component.go @@ -661,10 +661,12 @@ func addPart(part *[]oscalTypes_1_1_2.Part, paramMap map[string]parameter, level } var tabs string - for range level { + // Indents based on labels + for i := 0; i < level; i++ { tabs += "\t" } - prose := part.Prose + // Trims the whitespace + prose := strings.TrimSpace(part.Prose) if prose == "" { result += fmt.Sprintf("%s%s\n", tabs, label) } else if strings.Contains(prose, "{{ insert: param,") {