mechatroner/vscode_rainbow_csv

Poor alignment when mixing Chinese and English

Closed this issue · 1 comments

image
In the image above, the plugin seems to equate the width of Chinese character with the English character, without inserting the correct amount of spaces, which is clear in the comparison of the second line and the third line: Three spaces are inserted after "1" and " 一", and normally there should be two spaces after "一".
I'm sure I've used a monospace font with a width ratio of 2:1 for Chinese characters to English characters, no problem on other occasions.

Done, see #69. Although apparently 2:1 ratio doesn't quite work in some environments, see https://stackoverflow.com/a/7221188/2898283