{% spaceless %}
{% for operation in diff_operations %}
	{% ifequal operation.operation "replace" %}
		<del class="diff modified">{{ operation.deleted }}</del>
        <ins class="diff modified">{{ operation.inserted }}</ins>
	{% endifequal %}
	
	{% ifequal operation.operation "delete" %}
		<del class="diff">{{ operation.deleted }}</del>
	{% endifequal %}
	
	{% ifequal operation.operation "insert" %}
		<ins class="diff">{{ operation.inserted }}</ins>
	{% endifequal %}
	
	{% ifequal operation.operation "equal" %}
		{{ operation.inserted }}
	{% endifequal %}
{% endfor %}
{% endspaceless %}

{% spaceless %}
{% for operation in diff_operations %}
	{% ifequal operation.operation "replace" %}
		<del class="diff modified">{{ operation.deleted }}</del>
        <ins class="diff modified">{{ operation.inserted }}</ins>
	{% endifequal %}
	
	{% ifequal operation.operation "delete" %}
		<del class="diff">{{ operation.deleted }}</del>
	{% endifequal %}
	
	{% ifequal operation.operation "insert" %}
		<ins class="diff">{{ operation.inserted }}</ins>
	{% endifequal %}
	
	{% ifequal operation.operation "equal" %}
        <span>{{ operation.inserted }}</span>
	{% endifequal %}
{% endfor %}
{% endspaceless %}

Remove spaces around unchanged characters in diff
Remove spaces around unchanged characters in diff
