A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/robotframework/robotframework/issues/604 below:

East asian characters are not aligned correctly in console output · Issue #604 · robotframework/robotframework · GitHub

Originally submitted to Google Code by xieyanbo on 1 Aug 2010

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4