TextExtractor uses wrong new line character
-------------------------------------------

                 Key: ODFTOOLKIT-311
                 URL: https://issues.apache.org/jira/browse/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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to