fix save format
add warning on empty lines