<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -30,10 +30,10 @@ Prawn::Document.generate(&quot;table_with_background_color_problems.pdf&quot;) do
          [ &quot;It&quot;,    &quot;Rules&quot;,             &quot;4&quot; ],     
          [ &quot;It&quot;,    &quot;Rules&quot;,             &quot;4&quot; ]],     
 
-    :font_size  =&gt; 24, 
+    :font_size  =&gt; 10, 
     :horizontal_padding =&gt; 10,
     :vertical_padding =&gt; 3,
-    :border     =&gt; 2,
+    :border     =&gt; 1,
     :position   =&gt; :center,
     :headers    =&gt; [&quot;Column A&quot;,&quot;Column B&quot;,&quot;#&quot;],
     :row_colors =&gt; [&quot;eeeeee&quot;]</diff>
      <filename>bugs/table_row_background_color_issue.rb</filename>
    </modified>
    <modified>
      <diff>@@ -183,8 +183,19 @@ module Prawn
           @document.stroke_color @background_color
 
           @document.canvas do
-            @document.fill_and_stroke_rectangle [x+border,y-border], 
-              width-2*border, height-2*border
+            case border_style
+            when :all
+              point = [x,y-border]
+              h = height - border
+            when :no_top
+              point = [x,y-border/2.0]  
+              h     = height - border / 2.0
+            else
+              point = [x,y-border/2.0]
+              h     = height
+           end
+                    
+            @document.fill_and_stroke_rectangle point, width, h
           end
 
           @document.fill_color old_fill_color || &quot;000000&quot;
@@ -208,6 +219,10 @@ module Prawn
 
       def border_style=(s)
         @cells.each { |e| e.border_style = s }
+      end                 
+      
+      def border_style
+        @cells[0].border_style
       end
 
     end</diff>
      <filename>lib/prawn/graphics/cell.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6d84ac4ba0587ce6991a46c6b1105a55a296dc37</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/97d9bf083fd9423d17fd1efca36ea675ff34a6d7</url>
  <id>97d9bf083fd9423d17fd1efca36ea675ff34a6d7</id>
  <committed-date>2008-07-24T10:35:50-07:00</committed-date>
  <authored-date>2008-07-24T10:35:50-07:00</authored-date>
  <message>Partial fix</message>
  <tree>646e48b29ad7b0ff18ae11267c721e5a2437fe7d</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
