Bug in DOCx plugin?

  • Hello
    I noticed what seems to be a bug in the WP7 DOCX writer plugin.
    I have a RTF file. When I open that file with the WPTools editor and save it back using the DOCx format both Microsoft Word and LibreOffice report the file as corrupt and refuse to open it. But the WPTools editor can open the DOCX file without problems.
    To reproduce the error just copy/paste the code below in notepad, save it as TXT and change the file extension to RTF. Then open it using the WPT Editor Demo, save it back as DOCx and try to open it with Word or LibreOffice Writer. Word will refuse to open it with a "XML parsing error".

    {\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1046\deflangfe1046\deftab708{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
    {\*\generator Riched20 10.0.10240}\viewkind4\uc1
    \pard\sa200\sl276\slmult1\f0\fs20 Men below 50 years\tab\tab does not apply\tab\tab\tab <= -2,0: LOW BONE MASS\i\par
    }

    4 Mal editiert, zuletzt von rgribeiro (6. November 2015 um 17:40)

  • [UPDATE:]
    I found out an easier way to replicate the error:
    1- Create a new documento using WPT Editor Demo
    2- Press TAB three times and the insert an "<" symbol
    3- Save the file as DOCx
    4- Try to open it using Word or LibreOffice

    Apparently it happens only when TAB is inserted three times. Two and four TABs are OK.