xbps-query: formatting tweaks for PROP_TYPE_ARRAY objects.
This commit is contained in:
parent
734a2c3c2b
commit
b646554aea
@ -77,14 +77,12 @@ print_value_obj(const char *keyname, prop_object_t obj,
|
|||||||
obj2 = prop_array_get(obj, i);
|
obj2 = prop_array_get(obj, i);
|
||||||
if (prop_object_type(obj2) == PROP_TYPE_STRING) {
|
if (prop_object_type(obj2) == PROP_TYPE_STRING) {
|
||||||
value = prop_string_cstring_nocopy(obj2);
|
value = prop_string_cstring_nocopy(obj2);
|
||||||
printf("%s%s%s%s", indent, !raw ? "\t" : "",
|
printf("%s%s%s\n", indent, !raw ? "\t" : "",
|
||||||
value, !raw ? "\n" : "");
|
value);
|
||||||
} else {
|
} else {
|
||||||
print_value_obj(keyname, obj2, " ", raw);
|
print_value_obj(keyname, obj2, " ", raw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (raw)
|
|
||||||
printf("\n");
|
|
||||||
break;
|
break;
|
||||||
case PROP_TYPE_DICTIONARY:
|
case PROP_TYPE_DICTIONARY:
|
||||||
allkeys = prop_dictionary_all_keys(obj);
|
allkeys = prop_dictionary_all_keys(obj);
|
||||||
|
Loading…
Reference in New Issue
Block a user