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