Skip to content

Commit

Permalink
Add a CHANGELOG entry and documentation for the manual
Browse files Browse the repository at this point in the history
  • Loading branch information
russellsanders committed Dec 1, 2015
1 parent 60084d8 commit 68132c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Master

* Bugfix: Use the cell's specified font to calculate the cell width. (Jesse Doyle, PR [#60](https://github.com/prawnpdf/prawn-table/pull/60), issue [#42](https://github.com/prawnpdf/prawn-table/issues/42))
* Bugfix: Use a cell's custom style over table styles. (PR [#59](https://github.com/prawnpdf/prawn-table/pull/59), issue [#65](https://github.com/prawnpdf/prawn-table/issues/56))

## 0.2.3

Expand Down
11 changes: 11 additions & 0 deletions manual/table/style.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# also accepts a block that will be called for each cell and can be used for
# some complex styling.
#
# Individual cell styles can also be applied when defining the data for the
# table using a hash syntax for the cell. This style will take precedence over
# any table level cell styles. See the "cell_text" section for a list of
# options.

require File.expand_path(File.join(File.dirname(__FILE__),
%w[.. example_helper]))

Expand All @@ -19,4 +24,10 @@
c.background_color = ((c.row + c.column) % 2).zero? ? '000000' : 'ffffff'
end
end
move_down 20

table(
[['A', 'B'],['C', { content: 'D', text_color: 'ff0000' }]],
cell_style: { text_color: '0000ff' }
)
end

0 comments on commit 68132c1

Please sign in to comment.