summaryrefslogtreecommitdiffstats
path: root/markup/highlight/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-02 13:23:25 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-12-03 13:12:58 +0100
commitd90e37e0c6e812f9913bf256c9c81aa05b7a08aa (patch)
tree7b1b14464eefec1188ca2eed53c64e4823453cc9 /markup/highlight/config.go
parent32471b57bde51c55a15dbf1db75d6e5f7232c347 (diff)
all: Format code with gofumpt
See https://github.com/mvdan/gofumpt
Diffstat (limited to 'markup/highlight/config.go')
-rw-r--r--markup/highlight/config.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/markup/highlight/config.go b/markup/highlight/config.go
index a7c5ab4cb..1bee58dc5 100644
--- a/markup/highlight/config.go
+++ b/markup/highlight/config.go
@@ -71,7 +71,7 @@ func (cfg Config) ToHTMLOptions() []html.Option {
if cfg.LineAnchors != "" {
lineAnchors = cfg.LineAnchors + "-"
}
- var options = []html.Option{
+ options := []html.Option{
html.TabWidth(cfg.TabWidth),
html.WithLineNumbers(cfg.LineNos),
html.BaseLineNumber(cfg.LineNoStart),
@@ -126,7 +126,6 @@ func ApplyLegacyConfig(cfg config.Provider, conf *Config) error {
}
return nil
-
}
func parseOptions(in string) (map[string]interface{}, error) {
@@ -199,5 +198,4 @@ func hlLinesToRanges(startLine int, s string) ([][2]int, error) {
ranges = append(ranges, r)
}
return ranges, nil
-
}