Correctly calculate endpage

Change-Id: I8d0c07da122c282fda5e9361b8b8c26d22a75d1c
diff --git a/Changes b/Changes
index b0448c8..b1935da 100644
--- a/Changes
+++ b/Changes
@@ -5,6 +5,7 @@
     - [bugfix] Prevent showing empty elements and opening tags past primary data
       (diewald).
     - [cleanup] Cleanup test generated directories after run (diewald)
+    - [bugfix] Correctly calculate endpage (diewald)
 
 0.62.6 2024-06-13
     - [feature] Make match expansion configurable (close #150, margaretha)