Inserting line breaks into MergeFields
Posted: Thu Jul 18, 2013 3:22 am
I am successfully using org.docx4j.model.fields.merge.MailMerger.getConsolidatedResultCrude to replace MergeFields in my docx document.
My problem is that there are times when I need to append or prepend a newline (line break) to the MergeField.
I tried various hacks like "\r\n" and "<br/" and "<w:br/>", none of which worked of course.
Any idea of what I can do here?
My problem is that there are times when I need to append or prepend a newline (line break) to the MergeField.
I tried various hacks like "\r\n" and "<br/" and "<w:br/>", none of which worked of course.
Any idea of what I can do here?