From 6848dc3e7436742a4581b28801afd85ed654aab0 Mon Sep 17 00:00:00 2001 From: John Dugan <34268+jdugan@users.noreply.github.com> Date: Fri, 3 Aug 2018 12:28:05 +0200 Subject: [PATCH] Changed README to reflect actual default table cell margins. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6ffd764..2634936 100644 --- a/README.md +++ b/README.md @@ -643,9 +643,9 @@ It is possible to merge cells vertically and horizontally using the `rowspan` an ```ruby docx.table [['11', '1213', '14'], ['21', '22', '23', '24']] do - cell_style rows[0][0], rowspan: 2 - cell_style rows[0][1], colspan: 2 - cell_style rows[0][2], rowspan: 2 + cell_style rows[0][0], rowspan: 2 + cell_style rows[0][1], colspan: 2 + cell_style rows[0][2], rowspan: 2 end ``` @@ -659,10 +659,10 @@ If your table contains more complex data (multiple paragraphs, images, lists, et c1 = Caracal::Core::Models::TableCellModel.new do background 'cccccc' # sets the background color. defaults to 'ffffff'. margins do - top # sets the top margin. defaults to 0. units in twips. - bottom # sets the bottom margin. defaults to 0. units in twips. - left # sets the left margin. defaults to 0. units in twips. - right # sets the right margin. defaults to 0. units in twips. + top # sets the top margin. defaults to 100. units in twips. + bottom # sets the bottom margin. defaults to 100. units in twips. + left # sets the left margin. defaults to 100. units in twips. + right # sets the right margin. defaults to 100. units in twips. end p 'This is a sentence above an image.'