def parse_qualifier_block(text):
    """Parse qualifiers from qualifier block.


    Qualifiers are split by newline -> 21 spaces -> slash
    If value, Remove leading/trailing ", leading newline -> 21 spaces
    Otherwise it's boolean, e.g. /pseudo, so set True

    Store qualifiers of same type in lists, otherwise just str
    """
    qualifiers = {}
    gap = "\n" + " " * 21

    for qualifier in text.split(f"{gap}/"):
        key, *value = qualifier.split("=")

        # Determine if boolean or str value
        if value:
            value = value[0].lstrip('"').strip('"\n').replace(gap, "")
        else:
            value = True

        # Save multiple qualifiers of same type in lists
        if key in qualifiers:
            if isinstance(qualifiers[key], list):
                qualifiers[key].append(value)
            else:
                qualifiers[key] = [qualifiers.pop(key), value]
        else:
            qualifiers[key] = value

    return qualifiers