I have MS word doc saved as .docx. I want to insert new line in my text by edditing XML file of docx. I have already tried 
, , , 	, amd it always gives me only space not a new line.
what it does:
(XML code)
<w:t>hel
lo</w:t>
When I open .docx file then it is changed to:
Hel lo not as I wanted to be Hel on one line and lo on secound line.
Use the <w:br/> tag.
I found it by creating a Word document, saving it as XML (via Save As), adding a forced line break with Shift Enter, and checked out the change. The essential difference seems to be just the w:br tag, apparently reflecting the HTML br tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With