fixed bug in lines ending in 2 hyphens.