From 5505b483b66dfa43d6e356502fca3eb58638447c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 Jan 2017 11:50:58 +0000 Subject: repobrowse: preserve newlines in Atom feed Commit messages are assumed to be displayed in a terminal with a fixed width font, so we must preserve newlines and all whitespace as-is so ASCII art may be displayed properly. --- t/repobrowse_git_atom.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/repobrowse_git_atom.t b/t/repobrowse_git_atom.t index 4f0078eb..1f8e95e3 100644 --- a/t/repobrowse_git_atom.t +++ b/t/repobrowse_git_atom.t @@ -20,6 +20,8 @@ test_psgi($test->{app}, sub { is($p->format, "Atom", "parsed atom feed"); is(scalar $p->entries, 6, "parsed six entries"); } + like($body, qr!]+>\* header:\n add header!, + 'body wrapped in
');
 
 	$res = $cb->(GET($req . '/'));
 	my $sl = dechunk($res);
-- 
cgit v1.2.3-24-ge0c7