We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad59bc5 commit 91364e7Copy full SHA for 91364e7
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "inkjs",
3
- "version": "2.2.0",
+ "version": "2.2.1",
4
"description": "A javascript port of inkle's ink scripting language (http://www.inklestudios.com/ink/)",
5
"main": "dist/ink-full.js",
6
"types": "ink.d.ts",
src/engine/StoryState.ts
@@ -827,7 +827,10 @@ export class StoryState {
827
if (tailLastNewlineIdx < str.length - 1) {
828
let numSpaces = str.length - tailLastNewlineIdx - 1;
829
let trailingSpaces = new StringValue(
830
- str.substring(tailLastNewlineIdx + 1, numSpaces)
+ str.substring(
831
+ tailLastNewlineIdx + 1,
832
+ tailLastNewlineIdx + 1 + numSpaces
833
+ )
834
);
835
listTexts.push(trailingSpaces);
836
}
0 commit comments