use <cr> and previx separator, not terminator, so java-side split() doesn't end list with empty str.

This commit is contained in:
Eric House 2011-10-27 07:00:57 -07:00
parent 4818a2919d
commit 5282246dd6

View file

@ -880,14 +880,16 @@ indexOne( const DictionaryCtxt* dict, XP_U16 depth, Tile* tiles,
}
}
}
indices[(*nextIndex)++] = *prevIndex;
if ( NULL != stream ) {
if ( 0 < *nextIndex ) {
stream_catString( stream, "\n" );
}
XP_UCHAR prefix[8];
(void)dict_tilesToString( dict, tiles, depth, prefix, VSIZE(prefix) );
stream_catString( stream, prefix );
stream_catString( stream, "\n" );
}
indices[(*nextIndex)++] = *prevIndex;
}
}