Update the adoc table generation

This commit is contained in:
mmattel
2022-07-06 08:17:21 +02:00
parent 2e640424cf
commit 9a211daa90
2 changed files with 5 additions and 5 deletions

View File

@@ -89,9 +89,9 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
}
v := fmt.Sprintf("%v", value.Interface())
td := strings.Split(env, ";")
re := regexp.MustCompile(`^(https?:\/\/)`)
v = re.ReplaceAllString(v,"\\$1")
re = regexp.MustCompile(`(https?:\/\/)`)
// re := regexp.MustCompile(`^(https?:\/\/)`)
// v = re.ReplaceAllString(v,"\\$1")
re := regexp.MustCompile(`(https?:\/\/)`)
desc = re.ReplaceAllString(desc, "\\$1")
re = regexp.MustCompile(`(\|)`)
v = re.ReplaceAllString(v, "\\$1")

View File

@@ -15,9 +15,9 @@
{{- end }}
| {{.Type}}
a| [subs=-attributes]
{{.DefaultValue}}
pass:[{{.DefaultValue}}]
a| [subs=-attributes]
{{.Description}}
pass:[{{.Description}}]
{{- end }}
|===