Knowledge Drop

How to get Looker to display carriage returns

  • 15 June 2021
  • 0 replies
  • 290 views

Last tested: Aug 28, 2019
 

You should be able to use liquid to replace line break characters with HTML line break tags... something like 

{{ value | replace "\n","<br /" }} . 

 

Or better yet, you can use whitespace css. Just checked and it's allowed... 
 

html:<div style="white-space:pre">{{value}}</div>;; 

 


 

This content is subject to limited support.                

 

 

 


0 replies

Be the first to reply!

Reply