Skip to content

Commit 7cd6590

Browse files
authored
Merge pull request gitx#16 from nanotech/f/trim-message
Fix extra trailing blank lines on commit messages
2 parents cbabfed + eb8a037 commit 7cd6590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/views/history/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var Commit = function(obj) {
2626
var afterHeader = this.summaryRaw.substring(messageStart);
2727
var numstatStart = afterHeader.indexOf("\n\n") + 2;
2828
if (numstatStart > 1) {
29-
this.message = afterHeader.substring(0, numstatStart).replace(/^ /gm, "").escapeHTML();;
29+
this.message = afterHeader.substring(0, numstatStart - 2).replace(/^ /gm, "").escapeHTML();;
3030
var afterMessage = afterHeader.substring(numstatStart);
3131
var filechangeStart = afterMessage.indexOf("\n ") + 1;
3232
if (filechangeStart > 1) {

0 commit comments

Comments
 (0)