docx icon indicating copy to clipboard operation
docx copied to clipboard

#25 add a tag for hard line breaks

Open hhhcj opened this issue 11 months ago • 0 comments

Fix issue #25 . {{HardLineBreaks}} will be replaced by <w:p></w:p>, besides <w:br/>, it's hard line breaks.

docx1.Replace("document", "line1{{HardLineBreaks}}line2", -1)

And I also update const NEWLINE = "<w:br/>" with const NEWLINE = "</w:t><w:br/><w:t>", because when I convert this docx to pdf , it will not be recognized as new line, unless I move <w:br/> outside the <w:t>.

hhhcj avatar Mar 04 '24 09:03 hhhcj