for key, val in net.items():

                if val and '\n' in val:

                    output += generate_output(