I have tried {%- and -%} and also {{- -}}. But these appears not to work.
Are there any good ways to remove unnecessary whitespaces while using liquids within looker?
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
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.