incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Rau (Created) (JIRA)" <>
Subject [jira] [Created] (ODFTOOLKIT-311) TextExtractor uses wrong new line character
Date Sun, 18 Mar 2012 20:20:39 GMT
TextExtractor uses wrong new line character

                 Key: ODFTOOLKIT-311
             Project: ODF Toolkit
          Issue Type: Bug
          Components: simple api
            Reporter: Oliver Rau
            Assignee: Oliver Rau

org.odftoolkit.simple.common.TextExtractor uses '\r' instead of '\n' as new line character.
This leads to problems with other ODF Toolkit processing, as \r is ignored by most line break
helper functions, e.g.  org.odftoolkit.simple.common.WhitespaceProcessor.append(Element, String)

The best way to see the issue is to use the TextNavigation to find an element inside of a
cell and use replaceWith on the item to replace the value. One can see that the element value
is set correctly but the String value of the cell is set using TextExtractor functionalities
which leads to the Cell Value not containing a new line.

As the Unit-Tests are also tailored towards the '\r' those need to be updated as well.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message