mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-07 12:50:21 -06:00
escape adoc pipe & remove linewrap in output
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -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
|
||||
|
||||
3
docs/templates/ADOC.tmpl
vendored
3
docs/templates/ADOC.tmpl
vendored
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user