From b009334a06961360ebf5e7de0a07b303bff915d3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Oct 2008 20:24:04 +0000 Subject: 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 --- utils/lv2_inspect.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils') 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); -- cgit v1.2.1