diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2016-09-10 10:49:09 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2016-09-10 10:49:09 +0200 |
commit | 80b41c77526e1634c373b7892c334cdb8eeb5391 (patch) | |
tree | 445654299389ccdf4f2ad22363e12d6ab460ea8a | |
parent | fed545a0b9c23a1ae8229600bc03bb79290f749d (diff) | |
download | eumel-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
-rwxr-xr-x | formatRefs.py | 2 |
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)) |