Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kudrykv committed Nov 2, 2024
1 parent 320c98a commit 8cc3dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/latex_yearly_planner/xtypst/little_calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions lib/latex_yearly_planner/xtypst/little_weekdays_row.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8cc3dcf

Please sign in to comment.