Fix Appveyor Windows build and GitInfo path issue on Windows

This commit is contained in:
David Kassa 2017-01-01 16:16:58 -06:00 committed by Bjørn Erik Pedersen
parent 6e0f326b9d
commit 09a0af94f5
6 changed files with 62 additions and 6 deletions

View file

@ -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>") {