Correcting new line and removing test on horizontal line