clear formatting safety fix to only delete outer node if a span
Merge branch 'hotfix'