lstrip Filter

Trims whitespace characters (spaces, tabs, newlines) from the beginning of a string.

Parameters

None.

Category

String Filters

Description

Removes whitespace characters (space, tab, newline) from the beginning of a string.

      {% capture spacey %}
      
      
      Too much space.
      
      
      {% endcapture %}
      
      {{ spacey | lstrip }}
      

Output

      Too much space.