def format_dict_as_lines(action_data):
    """Given a dictionary, format it as list of lines for presentation in tikibar.
    """
    data = []
    for key in sorted(action_data):
        data.append('{key}:{value}'.format(key=key, value=action_data[key]))
    return '\n'.join(data)