hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
321 stars 28 forks source link

Align "center" doesn't work in print_screen() #202

Closed karol27 closed 3 years ago

karol27 commented 3 years ago

Describe the bug Align "center" don't work. Output is the same when align is right.

Minimal Reproducible Example The table on the end of this website: https://hughjonesd.github.io/huxtable/reference/align.html

Expected behavior Just to center align work

System details huxtable_5.3.0 R version 4.0.5 /i386 R Studio 1.4.1106

karol27 commented 3 years ago

Table in R has this problem but in markdown is OK

hughjonesd commented 3 years ago

Yeah:

tmp <- hux(a = c("1", "111", "11111", "1111111"))
align(tmp) <- "center"
tmp
                                              a  
                                              1  
                                            111  
                                          11111  
                                        1111111  

Column names: a

Need to look into the horror of to_screen to figure this out :-(

hughjonesd commented 3 years ago

Fixed in master, thanks!