Tanjoodo/squaretext

Wrong output with \n and multiple spaces

FlavaSava7 opened this issue · 1 comments

1 - wrong output with \n :
e.g.

input=   a
                    w

output = W 
              A 
            A W 
            A W 

2- Multiple spaces:

Solution is to insert line before 24 :
source = source.replace(/\n/g, "");
And replace line 24 with :
source = source.replace(/ /g, "");

source

Cool thanks for the source. Though maybe next time do it yourself