Line numbers are 1 based. Fixes issue #5.

This commit is contained in:
Martin Mahner 2013-03-20 12:03:39 +01:00
parent faf840a113
commit 638a62d775

View file

@ -1 +1 @@
{% load dpaste_tags %}<pre class="prettyprint linenums"><ol class="linenums">{% for line in snippet|highlight %}<li id="{{ forloop.counter0 }}">{{ line|safe|default:"&nbsp;" }}</li>{% endfor %}</ol></pre>
{% load dpaste_tags %}<pre class="prettyprint linenums"><ol class="linenums">{% for line in snippet|highlight %}<li id="{{ forloop.counter }}">{{ line|safe|default:"&nbsp;" }}</li>{% endfor %}</ol></pre>