Fixed a little bug in handling \n in lines and lines containg only \n