modularize line splitting so we can split on an outer block's tokens