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

RPE Excel - Attribute with multiple lines (carriage returns)

 Hi, 


when using RPE to export requirements, some attributes in the datasource are multi-line. The XML datasource uses &#10 to identify a new line, but in the excel output this is ignored and the result is a all lines combined into a single line (with no escape characters).

0 votes



One answer

Permanent link

 Hi Glyn,


If You will add String.fromCharCode(10); at the end of the line and it will encode new line proper way.

Just do text+"String.fromCharCode(10);

Hope it is solving Your problem.

Bartek

0 votes

Comments

 Just to double check... 


The attribute value in the datasource is

"Here is line one&#10Here is line two"

I want to it to print in my Excel as 

Here is line one
Here is line two

Try is

text.replace("&#10", String.fromCharCode(10));

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
× 7,495
× 1,325

Question asked: Jul 22 '21, 8:18 a.m.

Question was seen: 1,217 times

Last updated: Jul 22 '21, 11:58 a.m.

Confirmation Cancel Confirm