added unit test for \n in marked text
eliminated impossible case
removed unnecessary method