1
0
Fork 0

Quotation._format_position: do not treat page numbers as integers

Fixes: #3352
This commit is contained in:
Adeodato Simó 2024-04-08 16:10:00 -03:00
parent f844abcad9
commit df78cc64a6
No known key found for this signature in database
GPG key ID: 98EF291323013F6E
2 changed files with 1 additions and 3 deletions

View file

@ -395,7 +395,7 @@ class Quotation(BookStatus):
end = self.endposition or 0
if self.position_mode != "PG" or not beg:
return None
return f"pp. {beg}-{end}" if end > beg else f"p. {beg}"
return f"pp. {beg}-{end}" if end else f"p. {beg}"
@property
def pure_content(self):