<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -268,12 +268,24 @@ module Prawn
         else
           if C(:headers)
             contents.first.border_style = :all
-            contents.first.align = C(:align_headers) || :left
           else
             contents.first.border_style = :no_bottom
           end
           contents.last.border_style = :no_top
         end
+        if C(:headers)
+          contents.first.cells.each_with_index do |e,i|
+          if C(:align_headers)
+            case C(:align_headers)
+              when Hash
+                align = C(:align_headers)[i]
+              else
+                align = C(:align_headers)
+              end
+            end
+            e.align = align if align
+          end
+        end
         
         contents.first.background_color = C(:header_color) if C(:header_color)
  </diff>
      <filename>lib/prawn/document/table.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>786146a2583d3e51f7b6dc804b94e93b9bbef2d0</id>
    </parent>
  </parents>
  <author>
    <name>Colin A. Bartlett</name>
    <email>colin@kineticweb.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/47297900dcf3f16c4765ca817f17c53fb0a5a079</url>
  <id>47297900dcf3f16c4765ca817f17c53fb0a5a079</id>
  <committed-date>2008-11-14T06:44:09-08:00</committed-date>
  <authored-date>2008-11-06T19:43:51-08:00</authored-date>
  <message>Integrating patch from Brian Kenn
Per ticket #98:
allows proper alignment of table headers</message>
  <tree>92632ad3a643680114a02278684e27ceb13bbfb1</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
