(Dec-23-2019, 06:48 AM)Malt Wrote: What is the behavior you are observing and what is your expectation?
Currently, I am getting an output like below
#input - multi line input thru front end UI screen t12 t14 #output \12 t14Expectation:
#to support jira rest api format, I need formatted string like below \\nt12\\nt14\\n
I just tried like below and got expected output (able to post successfully in JIRA to create ticket)
Pls let me know, if any other efficient way to handling this string format.
#get input from UI screen and place in multi line quote string input_desc='''{}'''.format(request.form['description']) #convert each line into array list format_desc=input_desc.splitlines() description="" for i in format_desc: description=description+i+'\\n'Output:
testline1\ntestline2\ntestline3\n