[v3.4] #940 fix custom prompt

resolves #940 on `release-v3.4`
Doesn't it allow you to put linebreaks in the middle? Or is that just for strings and I stuck it in by accident...