mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-23 22:46:53 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user