Bug 44750

Summary: XSSF comments have newlines eaten
Product: POI Reporter: Nick Burch <apache>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

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