From 3d7b79e454ed680f20abe9eb957693ea44599b48 Mon Sep 17 00:00:00 2001 From: skv Date: Thu, 14 Aug 2014 15:19:44 +0400 Subject: [PATCH 1/2] whitespaceses at beginning of commit messages --- app/views/projects/commit/_commit_box.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml index f2b0699f13..2bc9048b2a 100644 --- a/app/views/projects/commit/_commit_box.html.haml +++ b/app/views/projects/commit/_commit_box.html.haml @@ -55,4 +55,4 @@ = gfm escape_once(@commit.title) - if @commit.description.present? %pre.commit-description - = gfm escape_once(@commit.description) + = preserve(gfm(escape_once(@commit.description))) From fe465004489024f731835d5eb934efa2decf6ac3 Mon Sep 17 00:00:00 2001 From: skv Date: Thu, 14 Aug 2014 15:20:34 +0400 Subject: [PATCH 2/2] gfm and preserve commit message for commits#show --- app/views/projects/commits/_commit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index abe0d4cff4..8e73663939 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -23,7 +23,7 @@ - if commit.description? .commit-row-description.js-toggle-content %pre - = commit.description + = preserve(gfm(escape_once(commit.description))) .commit-row-info = commit_author_link(commit, avatar: true, size: 16)