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

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>
(cherry picked from commit 093a35768e)

Co-authored-by: Zheng Xi Zhou <zzxwill@gmail.com>
This commit is contained in:
github-actions[bot]
2022-02-16 11:30:36 +08:00
committed by GitHub
co-authored by Zheng Xi Zhou
parent 859ca7567f
commit d36718969f
+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)
}