Wrap search results in a <p> block.
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 18 Apr 2018 16:12:35 +0000 (12:12 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 18 Apr 2018 16:12:35 +0000 (12:12 -0400)
The search results need a bit more work to look modern, but this
will alleviate formatting issues.

templates/search/listsearch.html

index 768bf8e4bef8e7dd8d3aa1101701c64be4729fdb..ea605768bae3cf65d50f07a7557dbf56ecdab667 100644 (file)
       <h2>Results {{firsthit}}-{{lasthit}} of {%if hitcount == 1000%}more than 1000{%else%}{{hitcount}}{%endif%}.</h2>
       {%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
       {%for hit in hits %}
+        <p>
         {{forloop.counter0|add:firsthit}}. <a href="https://www.postgresql.org/message-id/{{hit.messageid}}">{{hit.subject}}</a> [{{hit.rank|floatformat:2}}]<br/>
         From {{hit.author}} on {{hit.date}}.<br/>
         {{hit.abstract|safe}}<br/>
-        <a href="https://www.postgresql.org/message-id/{{hit.messageid}}">https://www.postgresql.org/message-id/{{hit.messageid}}</a><br/>
-        <br/>
+        <a href="https://www.postgresql.org/message-id/{{hit.messageid}}">https://www.postgresql.org/message-id/{{hit.messageid}}</a>
+        </p>
       {%endfor%}
       {%if pagelinks %}Result pages: {{pagelinks|safe}}<br/><br/>{%endif%}
     {%endif%}