From db073edc9e7834e7f71f1fa9f76866aeb29e0421 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 24 May 2011 12:34:52 +0200 Subject: [PATCH] yaz-client: no extra blanks for searchResult-1 display This partly reverts 3c0e13a1. Facets as still indented. --- client/client.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/client.c b/client/client.c index fa55c32..4cf2207 100644 --- a/client/client.c +++ b/client/client.c @@ -1661,16 +1661,16 @@ static void display_term(Z_Term *term) switch (term->which) { case Z_Term_general: - printf(" %.*s", term->u.general->len, term->u.general->buf); + printf("%.*s", term->u.general->len, term->u.general->buf); break; case Z_Term_characterString: - printf(" %s", term->u.characterString); + printf("%s", term->u.characterString); break; case Z_Term_numeric: - printf(" " ODR_INT_PRINTF, *term->u.numeric); + printf(ODR_INT_PRINTF, *term->u.numeric); break; case Z_Term_null: - printf(" null"); + printf("null"); break; } } @@ -1710,6 +1710,7 @@ static void display_facet(Z_FacetField *facet) for (term_index = 0 ; term_index < facet->num_terms; term_index++) { Z_FacetTerm *facetTerm = facet->terms[term_index]; + printf(" "); display_term(facetTerm->term); printf(" (" NMEM_INT_PRINTF ")\n", *facetTerm->count); } -- 1.7.10.4