insightsengineering / rtables

Reporting tables with R
https://insightsengineering.github.io/rtables/
Other
224 stars 48 forks source link

[Bug]: Misalignment between row label and cells #909

Closed JeanLucMoron closed 1 month ago

JeanLucMoron commented 1 month ago

the export_to_docx functionality works overall very well, however, I have noticed a slight vertical misalignment between the row label and the cell. Looking at the formating details in MS Word, it seems that while both have vertical alignment = top, there is an additional paragraph setting which differs between both elements: vertical spacing (1pt vs 5 pts).
image

I have observed this in several standard tables like AET10.

shajoezhu commented 1 month ago

hi @JeanLucMoron and @Melkiades , were they using different font? i am guessing it is in the first column, and the font is a bit off too?

JeanLucMoron commented 1 month ago

@shajoezhu , they are using the same font (arial ) and size (9) attaching the word document so that you can see aet10 (2).docx