cancel
Showing results for 
Search instead for 
Did you mean: 

Want to add NEW LINE CHARACTER in mapper

mohit
New Contributor

I am trying to add new line character between three of my contents but it is not allowing me. Can anyone tell how new line character can be used in Mapper.
Below is my mapper expression.
$Address+ \n +$Name+ \n+$Age

I want an output like below.
Address
Name
Age

Can anyone suggest something.

Thanks in advance

7 REPLIES 7

shreegeet
New Contributor II

have you tried this–> $Address+ "\n" +$Name+ "\n"+$Age

Yes, I tried this but it reads this as string write down the same in the output.

myeddula
New Contributor

Try this code you will get a solution :$Address+’ \n’ +$Name+ ‘\n’+$Age

Ramesh
New Contributor

Is this solution working ? Because I have tried with similar manner but it is adding \n to my string