aboutsummaryrefslogtreecommitdiffstats
path: root/lib/carlosgoce/layout
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-25 17:29:34 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-25 17:29:34 +0100
commit89f0e7ca8e4612904de5ff9b98a5de991a01b632 (patch)
treefff0e447fd548ecc3da7da1b3a010dd3ca7811b6 /lib/carlosgoce/layout
parent36d4411136969d56312533f95e7bedd53415138e (diff)
downloadpdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.tar.gz
pdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.tar.bz2
pdf-calendars-89f0e7ca8e4612904de5ff9b98a5de991a01b632.zip
Fix calendar blank spaces
Diffstat (limited to 'lib/carlosgoce/layout')
-rw-r--r--lib/carlosgoce/layout/layouts.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb
index 6a18513..e4be1c5 100644
--- a/lib/carlosgoce/layout/layouts.rb
+++ b/lib/carlosgoce/layout/layouts.rb
@@ -12,8 +12,8 @@ module CarlosGoce
data[:months].each do |k, month|
days = month[:formatted_days]
- cells = days.to_a.each_slice(6).to_a
- cells.unshift %w(L M X V S D)
+ cells = days.to_a.each_slice(7).to_a
+ cells.unshift %w(L M X J V S D)
cells.unshift [month[:name]]
tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0})