[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.15.224.97: ~ $
--TEST--
Whitespace trimming on tags.
--TEMPLATE--
Trim on control tag:
{% for i in range(1, 9) -%}
	{{ i }}
{%- endfor %}


Trim on output tag:
{% for i in range(1, 9) %}
	{{- i -}}
{% endfor %}


Trim comments:
      
{#- Invisible -#}
       
After the comment.

Trim leading space:
{% if leading %}

		{{- leading }}
{% endif %}

{%- if leading %}
	{{- leading }}

{%- endif %}


Trim trailing space:
{% if trailing -%}          
	{{ trailing -}}

{% endif -%}

Combined:

{%- if both -%}
<ul>
	<li>    {{- both -}}   </li>
</ul>

{%- endif -%}

end
--DATA--
return ['leading' => 'leading space', 'trailing' => 'trailing space', 'both' => 'both']
--EXPECT--
Trim on control tag:
123456789

Trim on output tag:
123456789

Trim comments:After the comment.

Trim leading space:
leading space
leading space

Trim trailing space:
trailing spaceCombined:<ul>
	<li>both</li>
</ul>end

Filemanager

Name Type Size Permission Actions
trim_block.test File 881 B 0644
trim_delimiter_as_strings.test File 151 B 0644
trim_left.test File 285 B 0644
trim_line_left.test File 287 B 0644
trim_line_right.test File 305 B 0644
trim_right.test File 282 B 0644