Remove superfluous []string declarations

This commit is contained in:
Niklas Fasching 2022-11-01 12:41:51 +01:00
parent f27340ed5e
commit 05a2dedbf8

View file

@ -20,14 +20,14 @@ type OrgWriter struct {
var exampleBlockUnescapeRegexp = regexp.MustCompile(`(^|\n)([ \t]*)(\*|,\*|#\+|,#\+)`)
var emphasisOrgBorders = map[string][]string{
"_": []string{"_", "_"},
"*": []string{"*", "*"},
"/": []string{"/", "/"},
"+": []string{"+", "+"},
"~": []string{"~", "~"},
"=": []string{"=", "="},
"_{}": []string{"_{", "}"},
"^{}": []string{"^{", "}"},
"_": {"_", "_"},
"*": {"*", "*"},
"/": {"/", "/"},
"+": {"+", "+"},
"~": {"~", "~"},
"=": {"=", "="},
"_{}": {"_{", "}"},
"^{}": {"^{", "}"},
}
func NewOrgWriter() *OrgWriter {