On Fri, 21 May 2010, Guilherme Mussi wrote:
I am making a tool to translate html to a XSSFRichTextString

When i find a br tag, i'm simply appending a \n character, like this:

richTextString.append("\n", font);

Unfortunately, if i do this, the .xslx file gets damaged and doesn't open
correctly (excel always offers to repair it)

I'd suggest you try creating the same file in excel. Then, unzip the .xlsx file (it's basically a zip file of xml files), and look at the shared strings table (where most cell string contents go). See what excel did there instead, then try doing the same

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to