From 6b770362ceb3dd9089de0cffb7716fb533d2709b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 13 Sep 2014 21:50:31 +0000 Subject: line-wrap generated HTML source around attrs for readability It's important to keep HTML source readable to folks who prefer to read raw HTML. This should improve readability of the HTML source by keeping line length in check without wasting bytes. --- t/view.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 't/view.t') diff --git a/t/view.t b/t/view.t index 91ba1686..18517933 100644 --- a/t/view.t +++ b/t/view.t @@ -44,19 +44,19 @@ EOF my $html = PublicInbox::View->msg_html($s); # ghetto tests - like($html, qr!]+>> Long and wordy/, + like($html, qr/]+>> Long and wordy/, "long quoted text is anchored"); # short page my $pfx = "http://example.com/test/f"; my $short = PublicInbox::View->msg_html($s, $pfx); - like($short, qr!]+>Long and wordy/, "long quoted text is made into a link"); ok(length($short) < length($html), "short page is shorter"); } -- cgit v1.2.3-24-ge0c7