It's all about the answers!

Ask a question

Initial newline in string attribute not quoted in exported CSV?


Koak Lodge (156110) | asked Jul 20 '16, 5:31 a.m.
edited Jul 21 '16, 3:16 a.m.

I have an artifact with a String attribute. In that String attribute is a string with a leading newline. When I export to CSV, this String attribute contents should be encased in quotes, but it isn’t, which erroneously breaks the CSV row.

Should be:

id,Artifact Type,Rationale,Name
71440,Generic Text,"
initial newline causes CSV export problem...",Newline to CSV Issue
	

But get this instead:

id,Artifact Type,Rationale,Name
71440,Generic Text,
initial newline causes CSV export problem...,Newline to CSV Issue
	

Anyone else notice this?

(Rational DOORS Next Generation 6.0.1 RDNG6.0.1-I20151106_1951 iFix004)

2 answers



permanent link
Alex Ivanov (713) | answered Jul 20 '16, 12:27 p.m.
I tried this in 5.0.2 and it works as expected for me.

permanent link
Alex Ivanov (713) | answered Jul 20 '16, 12:41 p.m.
I tried it with the Primary Text attribute and another custom attribute of Type string and it worked in both cases for me.

Comments
Koak Lodge commented Jul 21 '16, 3:16 a.m.

DNG version?

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.