summaryrefslogtreecommitdiff
path: root/formatRefs.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2016-09-10 10:49:09 +0200
committerLars-Dominik Braun <lars@6xq.net>2016-09-10 10:49:09 +0200
commit80b41c77526e1634c373b7892c334cdb8eeb5391 (patch)
tree445654299389ccdf4f2ad22363e12d6ab460ea8a /formatRefs.py
parentfed545a0b9c23a1ae8229600bc03bb79290f749d (diff)
downloadeumel-80b41c77526e1634c373b7892c334cdb8eeb5391.tar.gz
eumel-80b41c77526e1634c373b7892c334cdb8eeb5391.tar.bz2
eumel-80b41c77526e1634c373b7892c334cdb8eeb5391.zip
Fix page number display
Show start and end page for all but one-page articles
Diffstat (limited to 'formatRefs.py')
-rwxr-xr-xformatRefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/formatRefs.py b/formatRefs.py
index e17aac2..8189f2d 100755
--- a/formatRefs.py
+++ b/formatRefs.py
@@ -55,7 +55,7 @@ def formatParent (s, g, n, useName = True):
end = first (g.objects (n, s.pageEnd))
if start:
num = int (end)-int (start)
- if end and num > 1:
+ if end and num >= 1:
ret.append ('pp. {}–{}'.format (start, end))
else:
ret.append ('p. {}'.format (start))