<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,7 +12,9 @@ Prawn::Document.generate(&quot;fancy_table.pdf&quot;, :page_layout =&gt; :landscape) do
   mask(:y) { table body, :headers =&gt; headers }
 
   table [[&quot;This is&quot;,   &quot;A Test&quot;    ],
-         [&quot;Of tables&quot;, &quot;Drawn Side&quot;],
+         [  Prawn::Graphics::Cell.new( :text =&gt; &quot;Of tables&quot;,
+                                       :background_color =&gt; &quot;ffccff&quot; ),
+            &quot;Drawn Side&quot;],
          [&quot;By side&quot;,   &quot;and stuff&quot; ]], 
     :position         =&gt; 600, 
     :headers          =&gt; [&quot;Col A&quot;, &quot;Col B&quot;],</diff>
      <filename>examples/fancy_table.rb</filename>
    </modified>
    <modified>
      <diff>@@ -171,15 +171,26 @@ module Prawn
         @document.font_size(@font_size) do
           renderable_data.each_with_index do |row,index|
             c = Prawn::Graphics::CellBlock.new(@document)
-            row.each_with_index do |e,i|
-              c &lt;&lt; Prawn::Graphics::Cell.new(
-                :document =&gt; @document, 
-                :text     =&gt; e.to_s, 
-                :width    =&gt; @col_widths[i],
-                :horizontal_padding =&gt; @horizontal_padding,
-                :vertical_padding =&gt; @vertical_padding,
-                :border   =&gt; @border,
-                :border_style =&gt; :sides )    
+            row.each_with_index do |e,i| 
+              case(e)
+              when Prawn::Graphics::Cell
+                e.document = @document
+                e.width    = @col_widths[i]
+                e.horizontal_padding = @horizontal_padding
+                e.vertical_padding   = @vertical_padding    
+                e.border             = @border
+                e.border_style       = :sides
+                c &lt;&lt; e
+              else
+                c &lt;&lt; Prawn::Graphics::Cell.new(
+                  :document =&gt; @document, 
+                  :text     =&gt; e.to_s, 
+                  :width    =&gt; @col_widths[i],
+                  :horizontal_padding =&gt; @horizontal_padding,
+                  :vertical_padding =&gt; @vertical_padding,
+                  :border   =&gt; @border,
+                  :border_style =&gt; :sides ) 
+              end   
             end
 
             if c.height &gt; y_pos - @document.margin_box.absolute_bottom</diff>
      <filename>lib/prawn/document/table.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,7 +45,7 @@ module Prawn
       def initialize(options={})
         @point        = options[:point]
         @document     = options[:document]
-        @text         = options[:text]
+        @text         = options[:text].to_s
         @width        = options[:width]
         @border       = options[:border]
         @border_style = options[:border_style] || :all               
@@ -59,8 +59,13 @@ module Prawn
         end
       end
 
-      attr_accessor :point, :border_style, :border, :background_color
-      attr_writer   :height #:nodoc:
+      attr_accessor :point, :border_style, :border, :background_color,
+                    :document, :horizontal_padding, :vertical_padding
+      attr_writer   :height, :width #:nodoc:   
+      
+      def to_s
+        @text
+      end
 
       # The width of the text area excluding the horizonal padding
       #
@@ -190,7 +195,7 @@ module Prawn
           e.point  = [x - @document.bounds.absolute_left, 
                       y - @document.bounds.absolute_bottom]
           e.height = @height
-          e.background_color = @background_color
+          e.background_color ||= @background_color
           e.draw
           x += e.width
         end</diff>
      <filename>lib/prawn/graphics/cell.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c18d829968451c63da3c3b2fb86c783edfdebe8c</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/6397aa2d3dc5f5f38c9634b5946af310e6ad4e7e</url>
  <id>6397aa2d3dc5f5f38c9634b5946af310e6ad4e7e</id>
  <committed-date>2008-07-24T14:04:21-07:00</committed-date>
  <authored-date>2008-07-24T14:04:21-07:00</authored-date>
  <message>Accidentally implemented cell by cell colour support</message>
  <tree>df65f158cf38fc5299cfae5cfc98a7d29002adc3</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
