handle empy new line's

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>