diff --git a/lib/latex_yearly_planner/xtypst/little_calendar.rb b/lib/latex_yearly_planner/xtypst/little_calendar.rb index 67e2c2ee..ce488a68 100644 --- a/lib/latex_yearly_planner/xtypst/little_calendar.rb +++ b/lib/latex_yearly_planner/xtypst/little_calendar.rb @@ -76,7 +76,7 @@ def weekdays_row end def weeks - month.weeks.map { |week| week_row(week) }.join(",\n") + month.weeks.map(&method(:week_row)).join(",\n") end def week_row(week) diff --git a/lib/latex_yearly_planner/xtypst/little_weekdays_row.rb b/lib/latex_yearly_planner/xtypst/little_weekdays_row.rb index 4a8cf77a..5d2e1775 100644 --- a/lib/latex_yearly_planner/xtypst/little_weekdays_row.rb +++ b/lib/latex_yearly_planner/xtypst/little_weekdays_row.rb @@ -8,7 +8,7 @@ class LittleWeekdaysRow with_week_numbers: true, underline_weekdays: true, sideline_week_numbers: true, - week_number_placement: 'right', + week_number_placement: 'right' }.freeze attr_reader :weekday_start, :i18n, :parameters @@ -55,7 +55,6 @@ def apply_sideline_week_numbers! weekdays_row_internal.unshift("table.vline(x: #{x}, stroke: 0.4pt)") end - def weekdays_row_internal @weekdays_row_internal ||= rotated_weekdays.map(&method(:one_letter_day)) end