<!DOCTYPE html>
<style>
p { font: 16px monospace; white-space: -moz-pre-space; }
span { background-color: lime }
</style>
<p><span>a  b</span></p>
<p><span>a&#xA;b</span></p>
<p><span>a &#xA; b</span></p>
<p><span>&#xA;  a&#xA;  b&#xA;</span></p>
<p><span>a  </span></p>
<p><span>&#xA;&#xA;&#xA;</span></p>
<p><span>  &#xA;&#xA;&#xA;  </span></p>
<p><span>. &#xA;</span></p>
<p><span>a&#x9;b</span></p>
<p><span>a &#x9; b</span></p>
<p><span>&#x9;  a&#x9;  b&#x9;</span></p>
<p><span>a  </span></p>
<p><span>&#x9;&#x9;&#x9;</span></p>
<p><span>  &#x9;&#x9;&#x9;  </span></p>
<p><span>. &#x9;</span></p>