In the repeat loop, changed the way blank lines are handled.