Treat whitespace-only lines as empty

Lines consisting only of whitespace should be parsed the same as empty lines. Fixes issue #1.