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/SearchView.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/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 15bb8232..80a2ff7c 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -38,11 +38,11 @@ sub sres_top_html { my $cb; if ($err) { $code = 400; - $ctx->{-html_tip} = '<pre>'.err_txt($ctx, $err).'</pre><hr />'; + $ctx->{-html_tip} = '<pre>'.err_txt($ctx, $err).'</pre><hr>'; $cb = *noop; } elsif ($total == 0) { $code = 404; - $ctx->{-html_tip} = "<pre>\n[No results found]</pre><hr />"; + $ctx->{-html_tip} = "<pre>\n[No results found]</pre><hr>"; $cb = *noop; } else { my $x = $q->{x}; @@ -126,7 +126,7 @@ sub search_nav_bot { my $o = $q->{o}; my $end = $o + $nr; my $beg = $o + 1; - my $rv = "</pre><hr /><pre>Results $beg-$end of $total"; + my $rv = "</pre><hr><pre>Results $beg-$end of $total"; my $n = $o + $LIM; if ($n < $total) { |