Backport PR #4181: nbconvert: Fix, sphinx template not removing new lines from headers

If 1.1 hasn't been released yet, it would be nice to backport this.

See #4122