Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML - adding new line

Tags:

ms-word

xml

docx

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&#xA;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.

like image 852
Mario LIPCIK Avatar asked Nov 07 '12 13:11

Mario LIPCIK


1 Answers

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.

like image 81
Jukka K. Korpela Avatar answered Nov 09 '22 02:11

Jukka K. Korpela