Added unit test for #437
fixed unit test that broke when fixing #437.

Now the NL character has the correct attributes and so for this test to work the styles need to be on the P-level to be covering the full paragraph.
fixed unit test that broke from fixing #437
Fixes "bleeding out" of attributes into \n
closes #437
#437 current test
Merge branch 'od/issue_437' into develop