From: Doni Pracner Date: Sat, 26 Jul 2014 20:36:12 +0000 (+0200) Subject: mjc2wsl - printing numbers now takes into consideration how long the number is X-Git-Tag: v0.1.8~1^2 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=13695fb09706ad9035f7acc12d7a09954ed1843d;p=mjc2wsl.git mjc2wsl - printing numbers now takes into consideration how long the number is --- 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);");