nutterb / pixiedust

Tables So Beautifully Fine-Tuned You Will Believe It's Magic.
180 stars 18 forks source link

Column headings in HTML don't propagate through the column #4

Closed nutterb closed 9 years ago

nutterb commented 9 years ago

The problem is that the alignment tags are designated within dust. If the column alignment is changed through dust_head_halign, there is no modification of the tags in the table body.

It would be better to assign NA to the alignment tags in dust and then replace any NA with the default alignment tag within the print method instead. That way the alignments will propagate in HTML and LaTeX tables. (this bug doesn't affect markdown because markdown doesn't recognize cell specific alignment.)