gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - printing numbers now takes into consideration how long the number is
authorDoni Pracner <quinnuendo@gmail.com>
Sat, 26 Jul 2014 20:36:12 +0000 (22:36 +0200)
committerDoni Pracner <quinnuendo@gmail.com>
Sat, 26 Jul 2014 20:36:12 +0000 (22:36 +0200)
src/mjc2wsl.java

index 4723e4d7188758aa7fec99484ac4b818de92abc2..dec76fe6b66d64c19d3d707e6dfa63c010d9c613 100644 (file)
@@ -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);");
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner