waynemoore / sublime-gherkin-formatter

Gherkin Formatter for Sublime Text 2 and 3
MIT License
26 stars 3 forks source link

Incorrect formatting with double-byte characters #14

Open picimako opened 10 years ago

picimako commented 10 years ago

When there are double-byte characters in tables, the formatting runs but it cannot format the tables properly. Is it possible to fix it?

waynemoore commented 10 years ago

@picimako can you provide me with a sample file?

picimako commented 10 years ago

My description might have been misleading. What I meant is that when I mix double-byte and latin characters in the table it gets misaligned.

Here is an example:

Examples:
    | Languge   | Page title | Sub title |
    | English   | Page title | Subtitle  |
    | Chinese   | 店搜索        | 店         |
    | Arabic    | ل          | واحص      |
    | Hungarian | Oldal címe | Alcím     |

Is there a way to make a fix?

waynemoore commented 10 years ago

Ah, I see -- your example is helpful. Let me have a look :+1:

Are you using ST2 or ST3?

picimako commented 10 years ago

Thank you. I experienced it with both ST2 and ST3.