@@ -455,7 +455,7 @@ public static void extractInkTexts(String story) throws IOException {
455
455
456
456
StringBuilder tsvString = new StringBuilder ();
457
457
458
- extractInkTextsInternal (root , tsvString );
458
+ extractInkTextsInternal ("ink." + story + "." , root , tsvString );
459
459
FileUtils .writeStringToFile (new File (file + ".tsv" ), tsvString .toString ());
460
460
461
461
String json = root .toJson (OutputType .json );
@@ -464,18 +464,18 @@ public static void extractInkTexts(String story) throws IOException {
464
464
Ctx .project .setModified ();
465
465
}
466
466
467
- private static void extractInkTextsInternal (JsonValue v , StringBuilder sb ) {
467
+ private static void extractInkTextsInternal (String prefix , JsonValue v , StringBuilder sb ) {
468
468
if (v .isArray () || v .isObject ()) {
469
469
for (int i = 0 ; i < v .size ; i ++) {
470
470
JsonValue aValue = v .get (i );
471
471
472
- extractInkTextsInternal (aValue , sb );
472
+ extractInkTextsInternal (prefix , aValue , sb );
473
473
}
474
474
} else if (v .isString () && v .asString ().charAt (0 ) == '^' ) {
475
475
String value = v .asString ().substring (1 ).trim ();
476
476
// String key = "ink." + value.hashCode();
477
477
478
- String key = "ink." ;
478
+ String key = prefix ;
479
479
480
480
try {
481
481
MessageDigest md = MessageDigest .getInstance ("SHA-1" );
0 commit comments