Skip to content

Commit 72ea4a8

Browse files
committed
Adds string conversion for xml output of semantic tree. Fixes issue #248.
1 parent d5a1120 commit 72ea4a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/mj-single.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,8 @@ function GetSpeech(result) {
549549
function GetSemantic(result) {
550550
if (!data.semantic) return;
551551
result.streeJson = speech.toJson(result.mml);
552-
result.streeXml = data.minSTree ?
553-
speech.toSemantic(result.mml) :
554-
speech.pprintXML(speech.toSemantic(result.mml));
552+
var xml = speech.toSemantic(result.mml).toString();
553+
result.streeXml = data.minSTree ? xml : speech.pprintXML(xml);
555554
}
556555

557556
//

0 commit comments

Comments
 (0)