From d4f3216453a75c932533e43f551dd87f810d0f24 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 1 Feb 2013 14:08:57 +0800 Subject: fixes gen_extra_enter --- utils/segment/spseg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/segment/spseg.cpp') diff --git a/utils/segment/spseg.cpp b/utils/segment/spseg.cpp index f24b7a1..85aa14c 100644 --- a/utils/segment/spseg.cpp +++ b/utils/segment/spseg.cpp @@ -200,7 +200,7 @@ int main(int argc, char * argv[]){ ucs4_t * sentence = g_utf8_to_ucs4(linebuf, -1, NULL, &len, NULL); if ( len != num_of_chars ) { fprintf(stderr, "non-ucs4 characters encountered:%s.\n", linebuf); - fprintf(output, "\n"); + fprintf(output, "%d \n", null_token); continue; } @@ -218,14 +218,14 @@ int main(int argc, char * argv[]){ /* print extra enter */ if ( gen_extra_enter ) - fprintf(output, "\n"); + fprintf(output, "%d \n", null_token); g_array_free(strings, TRUE); g_free(sentence); } /* print enter at file tail */ - fprintf(output, "\n"); + fprintf(output, "%d \n", null_token); fclose(input); fclose(output); return 0; -- cgit