java - Docx4j removing whitespaces -


when have org.docx4j.wml.text whitespace it's removed.

r creater = wmlobjectfactory.creater(); text createtext2 = wmlobjectfactory.createtext(); createtext2.setspace("preserve"); createtext2.setvalue(" "); creater.getcontent().add(createtext2); p.getcontent().add(toaddindex, creater); 

the create text value "{space}", isn't added docx file

createtext2.setspace("preserve"); 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -