We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d61fd commit 310a8edCopy full SHA for 310a8ed
src/gitfetch/display.py
@@ -550,14 +550,14 @@ def _build_month_line_spaced(self, weeks_data: list) -> str:
550
# New month - add spacing and month name
551
target_width = (idx + 1) * 2
552
current_width = len(month_line)
553
- needed_space = target_width - current_width
554
- if needed_space > 0:
555
- month_line += " " * (
556
- needed_space - len(months[
557
- current_month - 1
558
- ])
559
- )
560
- month_line += months[current_month - 1]
+ # Ensure at least 1 space between months
+ month_name = months[current_month - 1]
+ calc = (target_width -
+ current_width -
+ len(month_name))
+ needed_space = max(1, calc)
+ month_line += " " * needed_space
+ month_line += month_name
561
except ValueError:
562
pass
563
0 commit comments