Fix issue 962

Fixes issue #962 by preserving the correct number of newlines when evaluating multi-line input.

ACHIEVEMENT UNLOCKED: FIRST PULL REQUEST SUBMITTED WHILE HURTLING THROUGH THE AIR

:sparkles: :airplane: :sparkles: