Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 604 by xieyanbo: East asian characters should be aligned
correctly in pybot output.
http://code.google.com/p/robotframework/issues/detail?id=604
The width of some Unicode characters -- East asian -- is 2, that cause
pybot's output aligned incorrectly.
Robot Framework 2.5 (Python 2.6.5 on darwin)
Demo:
0$ cat test_east_asian_width.txt
*** test cases ***
汉字应该正确对齐
Log Hello world!
0$ pybot test_east_asian_width.txt
==============================================================================
Test East Asian Width
==============================================================================
汉字应该正确对
齐 | PASS |
------------------------------------------------------------------------------
Test East Asian Width |
PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
After patched:
0$ pybot test_east_asian_width.txt
==============================================================================
Test East Asian Width
==============================================================================
汉字应该正确对齐 |
PASS |
------------------------------------------------------------------------------
Test East Asian Width |
PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
The patch and testcase attached.
Attachments:
robotframework-output-chinese-width.patch 2.7 KB
test_east_asian_width.txt 63 bytes