From: Sebastian Hammer Date: Fri, 15 Dec 1995 16:57:11 +0000 (+0000) Subject: Added formatted-text. X-Git-Tag: YAZ.1.8~831 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3c061ecc327ee0e2e5f0c63b4951c7d51cb87ce7;p=yaz-moved-to-github.git Added formatted-text. --- diff --git a/retrieval/d1_sutrs.c b/retrieval/d1_sutrs.c index be255a2..2a56f26 100644 --- a/retrieval/d1_sutrs.c +++ b/retrieval/d1_sutrs.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_sutrs.c,v $ - * Revision 1.2 1995-11-01 13:54:49 quinn + * Revision 1.3 1995-12-15 16:57:11 quinn + * Added formatted-text. + * + * Revision 1.2 1995/11/01 13:54:49 quinn * Minor adjustments * * Revision 1.1 1995/11/01 11:56:09 quinn @@ -65,7 +68,15 @@ static int nodetobuf(data1_node *n, int select, WRBUF b, int indent, int col) int l = c->u.data.len; int first = 0; - if (c->u.data.what == DATA1I_text) + if (c->u.data.what == DATA1I_text && c->u.data.formatted_text) + { + wrbuf_putc(b, '\n'); + wrbuf_write(b, c->u.data.data, c->u.data.len); + sprintf(line, "%*s", indent * NTOBUF_INDENT, ""); + wrbuf_write(b, line, strlen(line)); + col = indent * NTOBUF_INDENT; + } + else if (c->u.data.what == DATA1I_text) { while (l) {