Relax new line detection

An empty new line test should return true when there is an
empty bold, italic or other inline style but with no 
meaningful text.

This pull request improves the test such that empty non-block
elements are considered newlines.
You may want to do strict equality here. It won't make a difference but you've been strict everywhere else so might as well be consistent.