home · contact · privacy
Increase BrickListing item-count indent, to accommodate for larger numbers. master
authorPlom Heller <plom@plomlompom.com>
Thu, 13 Aug 2026 20:01:11 +0000 (22:01 +0200)
committerPlom Heller <plom@plomlompom.com>
Thu, 13 Aug 2026 20:01:11 +0000 (22:01 +0200)
src/bricksplom/misc.py

index 221b56c42b86789bd6885f8b8d0b1ad5c38cfce0..32137144f73a587e87439e83ae895122ed906c7a 100644 (file)
@@ -631,7 +631,7 @@ class BrickSet(Textfiled, WithDb, Lookupable):
         return (f'{self.id_indented()} '
                 f'{self._is_in_str}{self.description}{CHAR_NEWLINE}'
                 + self._format_paginated(lambda count, p_id, comment:
         return (f'{self.id_indented()} '
                 f'{self._is_in_str}{self.description}{CHAR_NEWLINE}'
                 + self._format_paginated(lambda count, p_id, comment:
-                                         f' {count:2} {Brick.indent_id(p_id)}'
+                                         f' {count:4} {Brick.indent_id(p_id)}'
                                          + (f' {comment}' if comment else '')))
 
     def __str__(
                                          + (f' {comment}' if comment else '')))
 
     def __str__(