Fix: properties table of cloud resource doc is broken (#3256)

If one column of a table contianers multiple line of a json
struct, it will break the table.

Signed-off-by: Zheng Xi Zhou <zzxwill@gmail.com>
This commit is contained in:
Zheng Xi Zhou
2022-02-16 11:03:11 +08:00
committed by GitHub
parent 46967daf11
commit 46fce3262e
+2 -2
View File
@@ -1047,8 +1047,8 @@ func (ref *ParseReference) parseTerraformCapabilityParameters(capability types.C
for _, v := range variables {
var refParam ReferenceParameter
refParam.Name = v.Name
refParam.PrintableType = v.Type
refParam.Usage = v.Description
refParam.PrintableType = strings.ReplaceAll(v.Type, "\n", `\n`)
refParam.Usage = strings.ReplaceAll(v.Description, "\n", `\n`)
refParam.Required = v.Required
refParameterList = append(refParameterList, refParam)
}