reformat dict to one key per line