escape adoc pipe & remove linewrap in output

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-05-06 11:10:47 +02:00
parent d0a00f8a8f
commit 84a93d24a9
2 changed files with 4 additions and 1 deletions

View File

@@ -91,6 +91,8 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
td := strings.Split(env, ";")
re := regexp.MustCompile(`^(https?:\/\/)`)
v = re.ReplaceAllString(v,"\\$1")
re = regexp.MustCompile(`(\|)`)
v = re.ReplaceAllString(v, "\\$1")
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: value.Type().Name()})
case reflect.Ptr:
// PolicySelectors in the Proxy are being skipped atm

View File

@@ -9,7 +9,8 @@
{{- range .Fields}}
{{ $numVars := len .EnvVars }}
| {{- range $i, $value := .EnvVars }}{{- if $i }} +{{ end }}
| {{- range $i, $value := .EnvVars }}{{- if $i }} +
{{ end -}}
`{{- $value }}`
{{- end }}
| {{.Type}}