]> source.dussan.org Git - redmine.git/commitdiff
Strip leading and trailing spaces from subjects (#26388).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Jul 2017 07:23:44 +0000 (07:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Jul 2017 07:23:44 +0000 (07:23 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16782 e93f8b46-1217-0410-a6f0-8f06a7374b81

script/changelog.rb

index 9e4618ce813ec30737c23262b41137f8ecf7e43b..e7ecece34d4a2ee8dc2e7da9cea3d6afacfd55f2 100644 (file)
@@ -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