Added line separation handling logic. Fixes #4

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>