scriptlet4docx
scriptlet4docx copied to clipboard
Space preserve scripts
This PR fixes lost whitespaces in and between scripts.
A space is lost if the replacement results in an element with leading or trailing spaces:
<w:t>one two </w:t>
instead of
<w:t xml:space="preserve">one two </w:t>
Edit: Made the behavior an opt-in because it can be a breaking change for some templates.