When i make diff between: OLD <pre> aaa bbb </pre> NEW <pre> aaa bbb </pre> there is a space in 'NEW' version in empty line. Those space is not highlighted, it could be inside > <pre><ins> </ins></pre> and additionally css: <pre> .Differences ins, .Differences del { text-decoration: none; white-space: pre-wrap; } </pre>