Contributed by Holger Just and Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16609
e93f8b46-1217-0410-a6f0-
8f06a7374b81
end
unless delimiters.empty?
- regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })\s*[\r\n].*", Regexp::MULTILINE)
+ regex = Regexp.new("^[> ]*(#{ Regexp.union(delimiters) })[[:blank:]]*[\r\n].*", Regexp::MULTILINE)
body = body.gsub(regex, '')
end
body.strip
MIME-Version: 1.0
Content-Type: text/plain;
format=flowed;
- charset="iso-8859-1";
+ charset="utf-8";
reply-type=original
-Content-Transfer-Encoding: 7bit
+Content-Transfer-Encoding: quoted-printable
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
This paragraph is between delimiters.
----
+---=C2=A0
This paragraph is after the delimiter so it shouldn't appear.
assert_issue_created(issue)
assert issue.description.include?('This paragraph is before delimiters')
assert issue.description.include?('--- This line starts with a delimiter')
- assert !issue.description.match(/^---$/)
+ assert !issue.description.match(/^---#{"\u00A0"}$/)
assert !issue.description.include?('This paragraph is after the delimiter')
end
end