Commits

Luke Plant committed 2c2cb49

Fixed spreadsheet headers to have borders like the other cells

Comments (0)

Files changed (1)

     """
     wksh = wkbk.add_sheet(name)
 
-    font_header = xlwt.Font()
-    font_header.bold = True
-    style_header = xlwt.XFStyle()
-    style_header.font = font_header
-    for c, header in enumerate(headers):
-        wksh.write(0, c, header, style=style_header)
-
     normal_style = xlwt.XFStyle()
     normal_style.alignment.vert = xlwt.Alignment.VERT_CENTER
     normal_style.borders.left = xlwt.Borders.THIN
     date_style = deepcopy(normal_style)
     date_style.num_format_str = 'YYYY/MM/DD'
 
+    style_header = deepcopy(normal_style)
+    font_header = xlwt.Font()
+    font_header.bold = True
+    style_header.font = font_header
+
+    for c, header in enumerate(headers):
+        wksh.write(0, c, header, style=style_header)
+
     for r, row in enumerate(contents):
         row_height = normal_style.font.height
         for c, val in enumerate(row):