## Prework * [x] Read and agree to the [code of conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html) and [contributing guidelines](https://github.com/rstudio/gt/blob/master/.github/CONTRIBUTING.md). * [x] If there is [already a relevant issue](https://github.com/rstudio/gt/issues), whether open or closed, comment on the existing thread instead of posting a new issue. ## Description as_word has a keep_with_next argument, however it is hardcoded as true in several places throughout the code https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1505 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1654 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1666 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1798 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1775 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1828 https://github.com/rstudio/gt/blob/f83c427f768bb32a94063d43cff6a4ac43c14d1b/R/utils_render_xml.R#L1816 ## Expected result keep_with_next should respect the keep_with_next arg throughout (as in most places it already does)
Prework
Description
as_word has a keep_with_next argument, however it is hardcoded as true in several places throughout the code
gt/R/utils_render_xml.R
Line 1505 in f83c427
gt/R/utils_render_xml.R
Line 1654 in f83c427
gt/R/utils_render_xml.R
Line 1666 in f83c427
gt/R/utils_render_xml.R
Line 1798 in f83c427
gt/R/utils_render_xml.R
Line 1775 in f83c427
gt/R/utils_render_xml.R
Line 1828 in f83c427
gt/R/utils_render_xml.R
Line 1816 in f83c427
Expected result
keep_with_next should respect the keep_with_next arg throughout (as in most places it already does)