summaryrefslogtreecommitdiffstats
path: root/helpers/pygments.go
diff options
context:
space:
mode:
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>") {