summaryrefslogtreecommitdiffstats
path: root/helpers/pygments.go
diff options
context:
space:
mode:
authorDavid Kassa <david.kassa@gmail.com>2017-01-01 16:16:58 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-01-01 23:16:58 +0100
commit09a0af94f54a0dbc8900c95ce5c83ee514d8ca68 (patch)
tree671d5351c62f998fbc2e99160463be7a0bb2beec /helpers/pygments.go
parent6e0f326b9dd3cf60bf87c99c7957c519d0ddd9ef (diff)
Fix Appveyor Windows build and GitInfo path issue on Windows
Diffstat (limited to 'helpers/pygments.go')
-rw-r--r--helpers/pygments.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/pygments.go b/helpers/pygments.go
index 7903678b6..5e9812d72 100644
--- a/helpers/pygments.go
+++ b/helpers/pygments.go
@@ -112,7 +112,7 @@ func Highlight(code, lang, optsStr string) string {
return code
}
- str := out.String()
+ str := string(normalizeExternalHelperLineFeeds([]byte(out.String())))
// inject code tag into Pygments output
if lang != "" && strings.Contains(str, "<pre>") {