New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fontsize() does not modify size of empty cells #153
Comments
Hi, It seems that the style of empty cells (NA or "") revert to what the Normal style in the Word template is. Is there a workaround? |
If only about managing NA, you can use:
|
Hi David, While the workaround you provided works for simple tables, it does not in the complex case I am working on. It is proprietary stuff so I cannot share it and would need to make a vanilla regex that would reproduce the problem. More generally, I guess one way to solve the problem would be to be able to apply a named Word style on the flextable content (something akin to the style argument of officer::body_add_table for example). |
No because this would reduce flextable output to only Word I'll try to work on that soon |
Well, the property could be used selectively by body_add_flextable()... Just a thought... |
It's a solution, thanks. but I think it is better to fix it in the xml generation which is text processing only and avoid xml processing that can really slow down the production. |
Hi all, just curious to see if this is still a live discussion point. I recently ran up against this myself. I'm not quite sure how the "set_formatter_type" workaround can be applied - is it possible to elaborate? Many thanks! |
Yes, it's still open :) Sorry, I don't have yet a technical solution for this. For this case, it does not create a "" but a NA as the column is a factor. Then, this workaround can be applied:
|
Solution for this issue consists in adding default formatting properties for runs inside paragraphs formatting properties |
Hi I could not understand the solution. Could you please clarify with an example, because I am still facing the same issue |
It's still open :) Sorry, I don't have yet a technical solution for this. |
Hi David,
fontsize() does not modify size of empty cells.
If printed to Word, the corresponding cells have the initial text size.
Best regards,
Fabian
Reproducible example:
sessionInfo():
The text was updated successfully, but these errors were encountered: