Every time this has ever happened to me, it meant I had blank lines in the prompt, either before, or after what I actually typed.