count lines rather than characters
Merge pull request #2 from goodybag/2-truncation

Console truncates on wrong condition