I'm trying to fill out a template from java with jOpenDocument library.
I want to start a new line in a field. The normal new line sign (\n) does not work.
When I do this manually in a document and look in the xml file (content.xml), I see why this does not work. For every new line in the field, there is a separate paragraph.
So maybe there is a way to combine multiple paragraphs in one object and then call setField() with the multiple paragraphs object. But until now I haven't found any solution.
Code Example:
EngineTemplate template = new RhinoTemplate(templateFile);
template.setField("nameField", "this is the content\nI wish to be multilined");