diff options
author | Anthony Fok <foka@debian.org> | 2014-12-26 08:07:03 -0700 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2014-12-26 08:07:03 -0700 |
commit | f5a3fb149fff3a44c2b3be8a0c46d02594d755c8 (patch) | |
tree | 6b97341a0706ad3e430a4be9386be83639dbc318 /helpers/pygments.go | |
parent | fbf8bcacc464e9bfbc816fa6d097e6371662ce02 (diff) |
Wrap comments helpers package to fit 80-column width
Add an initial space after `//` where appropriate.
Minor copyediting.
Diffstat (limited to 'helpers/pygments.go')
-rw-r--r-- | helpers/pygments.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers/pygments.go b/helpers/pygments.go index b31c834c6..a615f21ba 100644 --- a/helpers/pygments.go +++ b/helpers/pygments.go @@ -25,7 +25,8 @@ import ( const pygmentsBin = "pygmentize" -//HasPygments checks to see if Pygments is installed and available on the system. +// HasPygments checks to see if Pygments is installed and available +// on the system. func HasPygments() bool { if _, err := exec.LookPath(pygmentsBin); err != nil { return false @@ -33,7 +34,7 @@ func HasPygments() bool { return true } -//Highlight takes some code and returns highlighted code. +// Highlight takes some code and returns highlighted code. func Highlight(code string, lexer string) string { if !HasPygments() { |