mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
HistoryView: Show whitespace in commit message
This commit is contained in:
+2
-2
@@ -9,10 +9,10 @@ var Commit = Class.create({
|
||||
var messageStart = this.raw.indexOf("\n\n") + 2;
|
||||
|
||||
if (diffStart > 0) {
|
||||
this.message = this.raw.substring(messageStart, diffStart).escapeHTML();
|
||||
this.message = this.raw.substring(messageStart, diffStart).gsub(/^ /m, "").escapeHTML();
|
||||
this.diff = this.raw.substring(diffStart);
|
||||
} else {
|
||||
this.message = this.raw.substring(messageStart).escapeHTML();
|
||||
this.message = this.raw.substring(messageStart).gsub(/^ /m, "").escapeHTML();
|
||||
this.diff = "";
|
||||
}
|
||||
this.header = this.raw.substring(0, messageStart);
|
||||
|
||||
Reference in New Issue
Block a user