Browse Source

wrapping the pre's now in the css file

master
manetta 3 years ago
parent
commit
2a77ccd30e
  1. 5
      print/static/stylesheet.css
  2. 2
      print/templates/printed.html

5
print/static/stylesheet.css

@ -13,10 +13,11 @@ div#multifeeder div.multipost{
div#webcam img{ div#webcam img{
width: 500px; width: 500px;
} }
pre{ div.msg pre{
margin: 1em 0; margin: 1em 0;
padding: 0; padding: 0;
font-size: 14px; font-size: 14px;
word-break: break-all; width: 400px;
word-break: break-word;
white-space: pre-wrap; white-space: pre-wrap;
} }

2
print/templates/printed.html

@ -24,7 +24,7 @@
<strong>Source</strong>: {{ item.source }}<br> <strong>Source</strong>: {{ item.source }}<br>
<strong>Date</strong>: {{ item.date }}<br> <strong>Date</strong>: {{ item.date }}<br>
<strong>Printed</strong>: <strong>Printed</strong>:
<pre width="48">{{ item.printed | replace('\n', '<br>') | safe }}</pre> <pre>{{ item.printed | replace('\n', '<br>') | safe }}</pre>
</div> </div>
{% endif %} {% endif %}
{% set count = count - 1 %} {% set count = count - 1 %}

Loading…
Cancel
Save