Fixed bug which caused lines longer than 79 chars to be improperly handled.
Merge branch 'bugfix-getline' into develop