Merge pull request #3714 from owncloud/fix-adoc

escape adoc pipe & remove linewrap in output
This commit is contained in:
Christian Richter
2022-05-06 11:20:34 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+2
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
+2 -1
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}}