The simple and multiline tables uses left and right white-spaces for alignment -- so if the values fill up a cell, there's no way to identify if it's aligned left, right or center. For this end, we always have to add two extra space to each cell.
NOTE: this PR breaks many unit tests -- some of those are due to expecting the wrong value. Eg.
> pander(data.frame(a = '7 chars', b = paste(rep('Δ', 5), collapse = ' ')), style = 'simple')
a b
------- ---------
7 chars Δ Δ Δ Δ Δ
Should be:
a b
--------- -----------
7 chars Δ Δ Δ Δ Δ
@RomanTsegelskyi can you please have a quick look to verify that my intuition is right on this?
The simple and multiline tables uses left and right white-spaces for alignment -- so if the values fill up a cell, there's no way to identify if it's aligned left, right or center. For this end, we always have to add two extra space to each cell.
NOTE: this PR breaks many unit tests -- some of those are due to expecting the wrong value. Eg.
Should be:
@RomanTsegelskyi can you please have a quick look to verify that my intuition is right on this?