def format_multiple_values(value):
    """Reformat multi-line key value for PDS3 labels.

    For example if the ``MAKLABEL`` key value has multiple entries, it needs to
    be reformatted.

    :param value: PDS3 key value
    :type value: str
    :return: PDS3 key value reformatted
    :rtype: str
    """
    if ',' in value:
        values = value.split(',')
        value = "{\n"
        for val in values:
            value += f"{' ' * 31}{val},\n"
        value = value[:-2] + '\n' + ' ' * 31 + "}\n"

    return value