Project

General

Profile

Posting new lines in the description of an issue through the API

Added by Jon Lumpkin over 12 years ago

Is there a way to create an issue through the API, and have the description have new lines included?


Replies (4)

RE: Posting new lines in the description of an issue through the API - Added by Etienne Massip over 12 years ago

If you use json format then you should javascript-escape your values. New line characters will also be escaped into \r and \n sequences.

RE: Posting new lines in the description of an issue through the API - Added by Alex Mam about 11 years ago

If I using xml, how i can get a new line?
i tried \n\r in the end of the strings but I see this tags in issue without any new
lines
<![CDATA[
1 <br />
2<br />
]]>

didn't help too.

Could you help me?

RE: Posting new lines in the description of an issue through the API - Added by Alex Mam about 11 years ago

Ok,
I found workaround
each new line put in a new tag, like:
<description>line 1</description>
<description>line 2</description>
<description>line 3</description>

works like a charm

RE: Posting new lines in the description of an issue through the API - Added by troy feng almost 10 years ago

How can i get a new line when creating an wiki page through the API? It's similar to the problem,I tried multipul text tags,but it's still worse。

    (1-4/4)