Docx from Dynamic Template Adding Whitespaces

We have a process model which generates a "searchDocument" from an xml string and then searches for the content of that document in another document. The generate document plugin is adding additional whitespaces randomly and we don't know why. The xml string contains no " " double whitespaces but the document that's generated has a bunch and so no matching content is being found. Any ideas? Our template is below:

«[#list doc.project.developer as d]»«${d.@name}»
«[/#list]»


Thanks!
Bill

  Discussion posts and replies are publicly visible