From 57a98ebe63f5936b490f89d4b96f1747dd9bc24f Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Sun, 25 Jan 2015 22:17:48 +0100 Subject: Add style to month titles --- lib/carlosgoce/layout/layouts.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb index e4be1c5..f4e6e13 100644 --- a/lib/carlosgoce/layout/layouts.rb +++ b/lib/carlosgoce/layout/layouts.rb @@ -14,9 +14,15 @@ module CarlosGoce days = month[:formatted_days] cells = days.to_a.each_slice(7).to_a cells.unshift %w(L M X J V S D) - cells.unshift [month[:name]] + cells.unshift [{content: "#{month[:name]}", colspan: 7, + inline_format: true}] - tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0}) + tables << make_table(cells, + cell_style: + { + width: 20, align: :center, size: 7, border_width: 0, + padding: 0 + }) end table( -- cgit v1.2.3