Skip to main content

How can I insert newlines or spaces while using the expression builder with append? I want the appended values to be displayed on separate lines.

 

{{ ' name = "' | append: ticket.actual_requester.name | append: '" ' 
   | append: 'email = "' | append: ticket.actual_requester.email | append: '" ' }}

 

\n before the email does not seem to work.

 


 

How can I insert newlines or spaces while using the expression builder with append? I want the appended values to be displayed on separate lines.

 

{{ ' name = "' | append: ticket.actual_requester.name | append: '" ' 
   | append: 'email = "' | append: ticket.actual_requester.email | append: '" ' }}

 

\n before the email does not seem to work.

 


 

Are you going to send this in a API or post it in a e-mail/note? 
Better using HTML then <br> for new line. 


@Daniel Söderlund yes, this is going to be sent in an API call and this data will be updated in an existing file. 


@Daniel Söderlund yes, this is going to be sent in an API call and this data will be updated in an existing file. 

Hmm, why do you use Liquid filter ? 


Hi ​@Krishnae , as ​@Daniel Söderlund highlighted we are curious about your application with liquid filter.


Reply