diff options
author | Eric Wong <e@80x24.org> | 2016-07-06 02:32:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-06 07:12:45 +0000 |
commit | 8a770e2b8ec58bb3ac283aeaa97a4fddba3b03f9 (patch) | |
tree | 48078bfdf054c3e3dd3737db084ef479b687bfc6 /lib/PublicInbox/View.pm | |
parent | de92f32ad9d7c46db4d9e70fe441576b89aa0f5a (diff) | |
download | public-inbox-8a770e2b8ec58bb3ac283aeaa97a4fddba3b03f9.tar.gz |
www: use HTML <hr> instead of XHTML <hr />
We only need XHTML-compatibility inside Atom feeds, as anecdotally, feed readers are stricter than normal browsers and some do not support HTML, only XHTML. So we will continue to accomodate them. However we favor HTML elsewhere since it tends to be smaller than the equivalent well-formed XHTML.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index c230836d..7ff3b403 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -30,8 +30,7 @@ sub msg_html { PublicInbox::WwwStream->response($ctx, 200, sub { my ($nr, undef) = @_; if ($nr == 1) { - $tip . multipart_text_as_html($mime, '') . - '</pre><hr />' + $tip . multipart_text_as_html($mime, '') . '</pre><hr>' } elsif ($nr == 2) { # fake an EOF if generating the footer fails; # we want to at least show the message if something @@ -321,7 +320,7 @@ sub thread_html { my $msgs = load_results($sres); my $nr = $sres->{total}; return missing_thread($ctx) if $nr == 0; - my $skel = '<hr /><pre>'; + my $skel = '<hr><pre>'; $skel .= $nr == 1 ? 'only message in thread' : 'end of thread'; $skel .= ", back to <a\nhref=\"../../\">index</a>"; $skel .= "\n<a\nid=t>$nr+ messages in thread:</a> (download: "; |