Outlining spans for a standalone block shouldn't have the span of their ...

...parent.
Move this into the 'then' block of the following if