backport of #3981 fix nbconert rst prompt spacing

BF: fix nbconert rst input prompt spacing

I believe this fixes gh-3980

backported and pushed into 1.x branch by @ivanov