Open aaronmcohen opened 7 years ago
Hi, yes indeed, uses simple builtin len now, will need to fix, thanks for reporting ;)
This should resolve it, but when I did copy your example, there were still some alignment issues with some character sets and now I'm not exactly certain that this is fully resolved.. can you test it?
well, looks like for some of locales it would be necessary to use a separate library
would like to avoid such a dependency.
What are the impacts of leveraging the dependency? The logic in that go dependency looks complex enough that it would be hard to reproduce otherwise.
well, even this library cannot predict exact width for characters in all locales, for East Asian it does fix the width, but not many others. This will wait until a better solution is found for such unicode character sets, since the character spacing is different.
At the moment it will not be aligned properly
When I run a test using this table in my feature file
the result in the console is:
My expectation is that they would be aligned.