Apply all spans to all lines (need to select appropriate lines only