[Groonga-commit] groonga/groonga [master] output key/value pair in each line for level one map when tsv assigned.

Zurück zum Archiv-Index

null+****@clear***** null+****@clear*****
2010年 6月 19日 (土) 18:08:46 JST


Daijiro MORI	2010-06-19 09:08:46 +0000 (Sat, 19 Jun 2010)

  New Revision: fcda36c7af1c4721f3c0469bc7c38bc2a62236c7

  Log:
    output key/value pair in each line for level one map when tsv assigned.

  Modified files:
    lib/output.c

  Modified: lib/output.c (+1 -1)
===================================================================
--- lib/output.c    2010-06-19 09:00:04 +0000 (b80624c)
+++ lib/output.c    2010-06-19 09:08:46 +0000 (85449c6)
@@ -41,7 +41,7 @@ put_delimiter(grn_ctx *ctx)
     break;
   case GRN_CONTENT_TSV:
     if (DEPTH == 1) {
-      GRN_TEXT_PUTC(ctx, outbuf, '\n');
+      GRN_TEXT_PUTC(ctx, outbuf, ((level & 3) == 3) ? '\t' : '\n');
     } else if (DEPTH > 1) {
       GRN_TEXT_PUTC(ctx, outbuf, '\t');
     }




Groonga-commit メーリングリストの案内
Zurück zum Archiv-Index