Skip to content

Commit 6f4ab3a

Browse files
committed
[HWG] Add user spaces
1 parent 3cab47e commit 6f4ab3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/hwgeneration/src/main/java/com/myscript/iink/samples/hwgeneration/GenerationViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class GenerationViewModel(application: Application, private val engine: Engine)
215215
var currentPointerEventIndex = 0
216216
var wordIndex = 0
217217

218-
val words = sentence.split(" ").filter { it.isNotEmpty() }
218+
val words = sentence.split(" ").map { "$it " }.filter { it.isNotEmpty() }
219219

220220
generator.setListener(object: IHandwritingGeneratorListener {
221221
override fun onPartialResult(generator: HandwritingGenerator, result: HandwritingResult) {

0 commit comments

Comments
 (0)