From 80b41c77526e1634c373b7892c334cdb8eeb5391 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 10 Sep 2016 10:49:09 +0200 Subject: Fix page number display Show start and end page for all but one-page articles --- formatRefs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3