From a9aa1fcb99c19038249ebcc77d03adcb5697f3ca Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 9 Apr 2023 09:02:13 -0500 Subject: [PATCH] add zero-width space --- commands/drawDesign.cjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/drawDesign.cjs b/commands/drawDesign.cjs index f67e5ab..cd82232 100644 --- a/commands/drawDesign.cjs +++ b/commands/drawDesign.cjs @@ -192,14 +192,14 @@ function design4(input) { if (dist > radius - 1 && dist < radius + 1) { //&& dist > radius - 1 lineHasInput = true; - outputLine += "·"; + outputLine += "​·"; //zero-width space } else { outputLine += " "; } } } else { lineHasInput = true; - outputLine += "·" + space + input + space + spaceOffset + "·"; + outputLine += "​·" + space + input + space + spaceOffset + "·"; //zero-width space } //console.log(i, j, outputLine); @@ -260,7 +260,7 @@ function design5(input) { if (dist > radius - 1 && dist < radius + 1) { //&& dist > radius - 1 lineHasInput = true; - outputLine += input.charAt(charIterate(input)); + outputLine += input.charAt("​"+ charIterate(input)); //zero-width space } else { outputLine += " "; }