Question

Are there any good ways to remove unnecessary whitespaces while using liquids within looker?

  • 14 May 2018
  • 2 replies
  • 1114 views

I have tried {%- and -%} and also {{- -}}. But these appears not to work.


2 replies

Hi Ravi,


you can use the strip to remove tabs, spaces, and newlines (all whitespace) from the left and right side of a string, as shown in this Liquid Documentation.


Best,

Sara

This is exactly what I wanted. Thanks 😀

Reply