Skip to content

Commit

Permalink
Adjust line number padding a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 23, 2017
1 parent 99d0e49 commit 1af7e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formatters/html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (f *Formatter) styleToCSS(style *chroma.Style) map[chroma.TokenType]string
classes[t] = StyleEntryToCSS(entry)
}
classes[chroma.Background] += f.tabWidthStyle()
classes[chroma.LineNumbers] += "; margin-right: 0.5em"
classes[chroma.LineNumbers] += "; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;"
classes[chroma.LineHighlight] += "; display: block; width: 100%"
return classes
}
Expand Down

0 comments on commit 1af7e1a

Please sign in to comment.