|
@@ -186,7 +186,7 @@ func renderFile(c *context.Context, entry *git.TreeEntry, treeLink, rawLink stri
|
|
|
var output bytes.Buffer
|
|
|
lines := strings.Split(fileContent, "\n")
|
|
|
for index, line := range lines {
|
|
|
- output.WriteString(fmt.Sprintf(`<li class="L%d" rel="L%d">%s</li>`, index+1, index+1, gotemplate.HTMLEscapeString(line)) + "\n")
|
|
|
+ output.WriteString(fmt.Sprintf(`<li class="L%d" rel="L%d">%s</li>`, index+1, index+1, gotemplate.HTMLEscapeString(strings.TrimRight(line, "\r"))) + "\n")
|
|
|
}
|
|
|
c.Data["FileContent"] = gotemplate.HTML(output.String())
|
|
|
|