From c781bfb4438b9216bbc39f26847912a78498894c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 9 Jul 2017 07:23:44 +0000 Subject: [PATCH] Strip leading and trailing spaces from subjects (#26388). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16782 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- script/changelog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/changelog.rb b/script/changelog.rb index 9e4618ce8..e7ecece34 100644 --- a/script/changelog.rb +++ b/script/changelog.rb @@ -191,7 +191,7 @@ module Redmine issue_hash = { 'id' => tr.css('td.id > a').text.to_i, 'tracker' => tr.css('td.tracker').text, - 'subject' => tr.css('td.subject> a').text } + 'subject' => tr.css('td.subject> a').text.strip } @changelog_items[cat].push(issue_hash) end end -- 2.39.5