better empty-line handling (when "recursive")