Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first spaces are dropped #6

Open
emmtte opened this issue Nov 3, 2018 · 1 comment
Open

first spaces are dropped #6

emmtte opened this issue Nov 3, 2018 · 1 comment

Comments

@emmtte
Copy link

emmtte commented Nov 3, 2018

As you can see my ansi string have some spaces before numbers or fruits names

^[[90m┌──────┬────────────────────┬──────────┐^[[39m
^[[90m│^[[39m     1^[[90m│^[[39m               apple^[[90m│^[[39m      $1.2^[[90m│^[[39m
^[[90m│^[[39m    12^[[90m│^[[39m              banana^[[90m│^[[39m    $17.76^[[90m│^[[39m
^[[90m│^[[39m   145^[[90m│^[[39m              orange^[[90m│^[[39m   $154.23^[[90m│^[[39m
^[[90m│^[[39m  1243^[[90m│^[[39m                kiwi^[[90m│^[[39m   $1232.2^[[90m│^[[39m
^[[90m└──────┴────────────────────┴──────────┘^[[39m

the spaces are after the words not before on the svg result

@DrYak
Copy link

DrYak commented Feb 4, 2021

See the section workaround for spaces in issue #9

It's due to ansi-to-svg keeping the space verbatim in the output svg, but SVG ignoring them.

the block

<text>               apple</text>

will get displayed as:

apple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants