fix paragraph spacing bug when typing plain text