fixed hang with empty line after multiple (' |')

fixes #21