From: Adam Dickmeiss Date: Tue, 24 May 2011 10:34:52 +0000 (+0200) Subject: yaz-client: no extra blanks for searchResult-1 display X-Git-Tag: v4.2.1~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=db073edc9e7834e7f71f1fa9f76866aeb29e0421;p=yaz-moved-to-github.git yaz-client: no extra blanks for searchResult-1 display This partly reverts 3c0e13a1. Facets as still indented. --- 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); }