<#assign previousPosition = -10> <#list listDiffs as diff> <#if (diff.position>(previousPosition + 1))>
<#if diff.line??>${diff.line}${diff.position + 1}
<#if diff.oldText?? && diff.change??>
-
<#assign subDiffChange = false> <#if diff.subDiffs??> <#list diff.subDiffs as subDiff> <#if !subDiffChange && subDiff.change> <#assign subDiffChange = true> <#if subDiffChange && !subDiff.change> <#assign subDiffChange = false> <#if subDiff.oldText?? > ${subDiff.oldText} <#if subDiffChange = true>  
<#else>
 
${diff.oldText} 
<#elseif diff.newText?? && diff.change> <#if diff.newText?? && diff.change>
+
<#assign subDiffChange = false> <#list diff.subDiffs as subDiff> <#if subDiffChange && !subDiff.change> <#assign subDiffChange = true> <#if subDiffChange && !subDiff.change> <#assign subDiffChange = false> ${subDiff.newText} <#if subDiffChange==true>  
<#else>
 
${diff.oldText} 
<#assign previousPosition = diff.position>