We are formating DOCX XML files with tidy and we have found that following tag > <w:t xml:space="preserve">Hello World!</w:t> is converted to ><w:t xml:space="preserve"> > Hello World! > </w:t> Unfortunately such document opened in Microsoft Word has spaces around `Hello World!`:  We didn't find any workaround in tidy configuration (latest version built from this repository).