lstrip
string | lstrip
returns string
Strips all whitespace from the left of a string.
{%- assign text = ' Some potions create whitespace. ' -%}
"{{ text }}"
"{{ text | lstrip }}"
{%- assign text = ' Some potions create whitespace. ' -%}
"{{ text }}"
"{{ text | lstrip }}"
Output
" Some potions create whitespace. "
"Some potions create whitespace. "
Was this page helpful?