From 13695fb09706ad9035f7acc12d7a09954ed1843d Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Sat, 26 Jul 2014 22:36:12 +0200 Subject: [PATCH] mjc2wsl - printing numbers now takes into consideration how long the number is --- src/mjc2wsl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index 4723e4d..dec76fe 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -728,7 +728,7 @@ public class mjc2wsl{ prl(createTopTwoEStack()); if (genInlinePrint){ prl(createComment("print spacing",C_SPEC)); - prl("PRINFLUSH(SUBSTR(\" \", 0, MIN(10, MAX(0, tempa-1))), tempb);"); + prl("PRINFLUSH(SUBSTR(\" \", 0, MIN(10, MAX(0, tempa-SLENGTH(@String(tempb))))), tempb);"); } else prl("Print_MJ(tempb,tempa);"); -- 2.25.1