Allow classic prompts without space.

Closes gh-2790
Merge pull request #3483 from takluyver/i2790

Inputtransformer: Allow classic prompts without space