summaryrefslogtreecommitdiffstats
path: root/helpers/pygments.go
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2014-12-26 08:07:03 -0700
committerAnthony Fok <foka@debian.org>2014-12-26 08:07:03 -0700
commitf5a3fb149fff3a44c2b3be8a0c46d02594d755c8 (patch)
tree6b97341a0706ad3e430a4be9386be83639dbc318 /helpers/pygments.go
parentfbf8bcacc464e9bfbc816fa6d097e6371662ce02 (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.go5
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() {