ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.91k stars 112 forks source link

Text alignment is off #50

Closed offbynull closed 3 years ago

offbynull commented 4 years ago
<--+----+----+----+----+----+----+----+----+-->
   |    |    |    |    |    |    |    |    | 
 "-4" "-3" "-2" "-1"  "0" "+1" "+2" "+3" "+4"

Results in...

image

Notice how the alignment is off.

offbynull commented 4 years ago

I should mention that the quotes around the text are to escape the dash and the plus signs

ivanceras commented 4 years ago

@offbynull I just pushed out a new text escaping. After escaping the double quotes will become a whitespace. You probably need to visually align the text and the drawing like this:

<--+----+----+----+----+----+----+----+----+-->
   |    |    |    |    |    |    |    |    | 
  "-4" "-3" "-2" "-1" "0"  "+1" "+2" "+3" "+4"
offbynull commented 4 years ago

Thank you!