No borders when nested span-# is the same type

Fixes #1030