Add span wrappers to each line