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

How to prevent RPE adding extra new line in Word document when using Bullets in DOORS NG Artifact

 I am using RPE to generate Word Documents from a DOORS NG project.


I am finding that whenever I use a 'bullet' (from the DOORS NG formatting options) in an artifact, an extra new line is added in the Word Document prior to the first bulletted line (if in the bullets are within an artifact this gives two new lines, if the bullet is at the start of an artifact this gives a new line prior to the bulletted text)

I also notice extra space is shown prior to the line containing the bullet in DOORS NG.  I do not know whether this is relevant to the problem or not.

I think that it is DOORS NG that is adding the extra new line because if I copy the text from DOORS NG within the artifact and paste into Notepad++, I see that there are two line feeds in the output.

Unfortunately I cannot upload images to show this because I do not have enough 'points' to be allowed to do so.

Does anyone know how to prevent this?

I have considered removing the extra new line in the Word document but it is not easy because sometimes the new line is at the start of a cell in Word Table and I do not know how to globally remove a new line immediately following the start of a cell in a Word Table.

I am using DOORS NG 6.0.4 and RPE 6.0.5

1 vote



3 answers

Permanent link

 Hi Richard,


It seems that this blank line is created automatically when you add bullets in DNG. I had exactly the same problem when I was creating RPE report. I strongly suggest printing to Word a raw HTML and check what html tag is generating this blank line.

After you will diagnose the cause of the new line, you can remove it using regexp.

2 votes


Permanent link

 Hi Richard,


I am glad you posted this question. I have had the same issue and was wondering the same. I hope you get an answer that resolves it.

Good luck!

0 votes


Permanent link
I am using latest version of DNG and RPE and RPE's output is similar to how it is shown in DNG.

However, the XML data returned by DOORS Next's reportable API will be slightly  different at times. In such case, you can use Script Expression with replace function for regexp. You can also consider using Container instead of Paragraph element  for avoiding extra line before or after the artifact.

0 votes

Comments

Subramanya, that is exactly what I what thinking about.

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: Jun 18 '18, 12:38 p.m.

Question was seen: 3,820 times

Last updated: May 04 '20, 4:59 a.m.

Confirmation Cancel Confirm