mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
use <cr> and previx separator, not terminator, so java-side split() doesn't end list with empty str.
This commit is contained in:
parent
4818a2919d
commit
5282246dd6
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue