Incorrect table column width with multibyte text.#109
Incorrect table column width with multibyte text.#109miya0001 wants to merge 4 commits intowp-cli:masterfrom
Conversation
|
The result of the phpunit is following. |
|
I wrote a sample test for investigating this problem. Result: |
|
👌 thanks @miya0001 |
|
Oh ...orz |
|
I am trying with this master branch, I think it hasn't solved. |
|
I saw the problem with following test. |
|
I am trying to find a solution to split multibyte text as fixed length for now. |
|
Hi @miya0001 , I see what's happening - my fault - I was working on fixes related to #106 but am trying to fix this now - I'm thinking that maybe add a flag to |
|
Ok gitlost#3 is now passing Travis but it's not a great solution - it doubly loads I'll see if there's a better solution (probably have to refactor the |
|
Hi @gitlost 😄 Hmm, table looks broken on your test result. I see Following is a test for it. It is passed. Thanks! |
|
Oh! Sorry, it is just a problem of the CSS! It looks nice! Thanks! |
|
I close this PR. :) |
|
Hi no problem - I was wondering about that and didn't realize it was the CSS. The fix isn't very elegant and is slow at the moment - it breaks the string into UTF-8 characters into an array and then UTF-8 character by UTF-8 character exams it to see if it's an East Asian char and then adjusts the length by 2 or 1 accordingly - there must be a better way! |
|
I couldn't found the solution to split multibyte text as fixed length, so your solution is only way for now. I am happy to see solving this problem. |
|
Thank you @miya0001! - I'll keep thinking about it though (sleeping on things is usually a good approach!) and see if there's something nicer... |

Incorrect table column width with multibyte text.
I added a test for this problem so it will be failed.
The output is like following.
I am trying to fix this problem, but I haven't find a cause for now.
Are there any hints?