Chris Doyle
Chris Doyle
If you want everything right-justified you can override FixedWidthFormatter: ``` ruby module TablePrint class FixedWidthFormatter def format(value) padding = width - length(value.to_s) (padding < 0 ? '' : " "...
It will be relatively straightforward to output plain HTML. What will be more difficult is letting you add custom markup (classes, etc) to that base table. What are your thoughts...
haha! It's obvious now that you said it :) I always forget about pre tags. I'll add that to the README, thanks!
whoops, didn't mean to close this issue. I think actual `` elements will still be useful.
might be easier to sort the columns just before the conversion to strings, rather than after: https://github.com/arches/table_print/blob/master/lib/table_print/row_group.rb#L175 (though ideally it would print in the order you specify on the command...
cool, thanks! I do get those all the time and just never bothered to look into it :)
need a similar fix on line 58 to handle missing associations
as a way to simplify the stream problem?
that was the idea, yeah
...but i have no idea what mechanism would make that happen