It's all about the answers!

Ask a question

Adding a page break to a published text artifact fron DNG in RPE

Glyn Costello (14050) | asked Aug 05 '21, 8:09 a.m.
edited Aug 05 '21, 8:28 a.m.


I was wondering if it's possible to use the .replace() to look for <hr/> tags in the text artifact to introduce a page break in the published word document?

I'm just not sure what the <hr/> tag should be replaced with in the script?

One answer

permanent link
Subramanya Prasad Pilar (4.6k16) | answered Aug 06 '21, 12:58 a.m.

I will suggest using a post processing macro that calls InsertBreak method wherever there is a horizontal rule in the Word output.

You may be thinking about using Replace() with RegEx to replace '<hr/>' with the following:
'<p style="page-break-after: always;">&nbsp;</p><p style="page-break-before: always;">&nbsp;</p>'

But I don't think that works.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.