summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-04 20:24:04 +0000
committerDavid Robillard <d@drobilla.net>2008-10-04 20:24:04 +0000
commitb009334a06961360ebf5e7de0a07b303bff915d3 (patch)
tree3a52de32bc061fd2f9dc6c23baccc6f7357ba262 /utils
parentb6c7fceb16842cc85f0abe0e84c01dba6f3bfbfc (diff)
downloadlilv-b009334a06961360ebf5e7de0a07b303bff915d3.tar.gz
lilv-b009334a06961360ebf5e7de0a07b303bff915d3.tar.bz2
lilv-b009334a06961360ebf5e7de0a07b303bff915d3.zip
Fix printing of properties with several values (remove spurious newlines and align things correctly).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1612 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'utils')
-rw-r--r--utils/lv2_inspect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c
index 2347b68..04db2ac 100644
--- a/utils/lv2_inspect.c
+++ b/utils/lv2_inspect.c
@@ -85,7 +85,7 @@ print_port(SLV2Plugin p, uint32_t index, float* mins, float* maxes, float* defau
printf("\t\tProperties: ");
for (unsigned i=0; i < slv2_values_size(properties); ++i) {
if (i > 0) {
- printf("\n\t\t ");
+ printf("\t\t ");
}
printf("%s\n", slv2_value_as_uri(slv2_values_get_at(properties, i)));
}
@@ -183,7 +183,7 @@ print_plugin(SLV2Plugin p)
if (i > 0) {
printf("\n\t ");
}
- printf("%s\n", slv2_value_as_uri(slv2_values_get_at(features, i)));
+ printf("%s", slv2_value_as_uri(slv2_values_get_at(features, i)));
}
if (features)
printf("\n");
@@ -197,15 +197,15 @@ print_plugin(SLV2Plugin p)
printf("\tOptional Features: ");
for (unsigned i=0; i < slv2_values_size(features); ++i) {
if (i > 0) {
- printf("\n\t ");
+ printf("\n\t ");
}
- printf("%s\n", slv2_value_as_uri(slv2_values_get_at(features, i)));
+ printf("%s", slv2_value_as_uri(slv2_values_get_at(features, i)));
}
if (features)
printf("\n");
slv2_values_free(features);
-
-
+
+
/* Ports */
const uint32_t num_ports = slv2_plugin_get_num_ports(p);