Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 Hi, 


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?

0 votes



One answer

Permanent link

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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,027

Question asked: Aug 05 '21, 8:09 a.m.

Question was seen: 1,224 times

Last updated: Aug 06 '21, 12:58 a.m.

Confirmation Cancel Confirm