This magic is to handle two things:

  * Sometimes there are comments like:  Look at blah-5.png.  (this should not count)
  * So we say there is whitespace or start of line.  But sometimes "start of line" is actually the end of an HTML tag  (ex: <p>+1</p>)