Bug 44750 - XSSF comments have newlines eaten
Summary: XSSF comments have newlines eaten
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-03 12:36 UTC by Nick Burch
Modified: 2009-04-17 11:41 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Burch 2008-04-03 12:36:44 UTC
We appear to be passing the wrong incantations to xmlbeans, and consequently it is eating the leading newlines in the comment text

So, if the comment text was "Nick Burch" + "\nI am a comment" (different formatting on the two bits), and we serialise and re-load, we get "Nick Burch" + "I am a comment" (new line gone)

src/ooxml/testcases/org/apache/poi/xssf/model/TestCommentsTable.java has a commented out test that shows this up

Probably we need to tell xmlbeans something different when serialising
Comment 1 Yegor Kozlov 2009-04-17 11:41:47 UTC
Works fine with the latest trunk.

Yegor