rstrip Filter

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

Parameters

None.

Category

String Filters

Description

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

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

Output

      
      
      Too much space.