Bug 49508

Summary: Appending paragraphs to XWPFTableCell
Product: POI Reporter: Immad <immad.naseer>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Patch for XWPFTableCell.createParagraph method

Description Immad 2010-06-26 15:36:31 UTC
Created attachment 25646 [details]
Patch for XWPFTableCell.createParagraph method

XWPFTableCell lacks a method to append paragraphs to itself. While it has an addParagraph method, that method only appends the XWPFParagraph to the internal paragraphs array and does not update the underlying CTTc object. 

Please find attached a patch for a createParagraph method which appends a new paragraph to the cell, updating the paragraph array as well as the CTTc object.
Comment 1 Nick Burch 2010-06-29 10:05:07 UTC
Thanks for this. I decided that addParagraph was probably a more consistent name when compared to the related methods, so I tweaked the name to that. Committed in r958972.