scriptlet4docx icon indicating copy to clipboard operation
scriptlet4docx copied to clipboard

Space preserve scripts

Open pmoehl opened this issue 6 years ago • 0 comments

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.

pmoehl avatar Mar 07 '19 15:03 pmoehl