Now empty lines are only inserted where needed, instead of where possibly needed