make adoc-generator escape links for antorra
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
1 parent
09b89f7a3c
commit
247d22b040
1 file changed
+2
@@ -91,6 +91,8 @@ func GetAnnotatedVariables(s interface{}) []ConfigField {
|
|||||||
td := strings.Split(env, ";")
|
td := strings.Split(env, ";")
|
||||||
re := regexp.MustCompile(`^(https?:\/\/)`)
|
re := regexp.MustCompile(`^(https?:\/\/)`)
|
||||||
v = re.ReplaceAllString(v,"\\$1")
|
v = re.ReplaceAllString(v,"\\$1")
|
||||||
|
re = regexp.MustCompile(`(https?:\/\/)`)
|
||||||
|
desc = re.ReplaceAllString(desc, "\\$1")
|
||||||
re = regexp.MustCompile(`(\|)`)
|
re = regexp.MustCompile(`(\|)`)
|
||||||
v = re.ReplaceAllString(v, "\\$1")
|
v = re.ReplaceAllString(v, "\\$1")
|
||||||
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: value.Type().Name()})
|
fields = append(fields, ConfigField{EnvVars: td, DefaultValue: v, Description: desc, Type: value.Type().Name()})
|
||||||
|
|||||||
Reference in new issue
Block a user