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

New line appearing in RPE DOORS output

Why is a new line appearing between the 'bbb' and the artifact text in the following RPE template being used to export artifacts in a DOORS Next module when no new line appears between the 'aaa' and the 'bbb'?


zoomed in a bit to see the 3rd text cell - it is querying the richtextBody and returning the correct result but publishing with a new line prepended

Normally a new line should only appear if a paragraph element occurs between text elements but here a new line appears between 'bbb' and rich text body:-.


If I change the text cell to instead publish the 'title' attribute then I get the correct output with no new line.


But Title is no use since it is a truncated version of primary text limited to something like 256 chars

If I change the text cell to use Primary Text instead of Title (with the same context as Title) then I get 'data attribute not found'



Primary Text might be a workaround but the rich text would be better.

But if PrimaryText  gives 'data attribute not found' then even this workaround is not working.

0 votes


Accepted answer

Permanent link
You can either use primaryText or div attribute.
primaryText attribute will give stripped down version (without formatting) and you should append ptext=true parameter in the request URL so as to get this attrbute.
The value returned by div attribute will include <div> element, resulting in line break, which is expected.
Sean F selected this answer as the correct answer

2 votes

Comments
Thanks Prasad

I got that working with primaryText using ptext=true

Is there any way to grab the richText from the <div> element and insert a string at the start of the richText so that this string appears at the beginning of the richText with no new line in between the string and the richText?

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

Question asked: Mar 27 '21, 1:06 p.m.

Question was seen: 796 times

Last updated: Mar 28 '21, 11:08 a.m.

Related questions
Confirmation Cancel Confirm