insightsengineering / rtables

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

[bug] Empty cells use a different font, causing unexpected linespacing #910

Closed JeanLucMoron closed 1 month ago

JeanLucMoron commented 1 month ago

When exporting to docx format, if cells are empty they use a different font , which leads to unexpected spacing between lines. The font name and size should be the same across the entire table , including empty cells image

I have observed it with the standard table DMT01

When modifying manually in word the font name and size to be the same in the empty cells, the result looks more consistent: image

Melkiades commented 1 month ago

I have checked this issue and it is resolved when horizontal padding is added uniformally. It is 12 because 9 font + 3 spacing. Refer to https://github.com/insightsengineering/rtables/issues/909 for solution