fix empty span to occupy empty line for editor. Fixes #503