Don't insert a page break on the last page

This commit is contained in:
Roberto Rosario
2011-05-06 02:33:07 -04:00
parent c44a1f947c
commit d6aa44c8bd

View File

@@ -49,7 +49,7 @@
<body>
{% for page in pages %}
{% get_document_size object %}
<div class="{% if forloop.counter > 1 %}break{% endif %}">
<div class="{% if forloop.counter > 1 and not forloop.last %}break{% endif %}">
<img src="{% url document_display_print object.id %}?page={{ page.page_number }}" {% if document_aspect > page_aspect %}width="97%"{% else %}height="97%"{% endif %} />
</div>
{% endfor %}