Commit Graph

27 Commits

Author SHA1 Message Date
Michael Muré
f72a9dc62b
switch to go-term-text to fix bad underflow for label rendering 2019-11-03 14:00:35 +01:00
Michael Muré
606a66dd6d
text: fix escape sequence disapearing at the end of a line 2019-05-10 00:45:36 +02:00
Amine Hilaly
2e17f37175 Add unicode control characters test case
Move `cleanupText` to utils/text/transform.go
`text.Cleanup`: removing unicode control characters except for those allowed by `text.Safe`

Add golang.org/x/text dependencies

fix text.Cleanup

Fix import panic
2019-05-05 18:16:10 +02:00
Michael Muré
475b7b4c49
a round of cleanup 2019-03-01 22:52:53 +01:00
Yang Zhang
8ea5c6b41d Fix handling of long words 2019-01-08 09:55:32 +08:00
Yang Zhang
2feb4ec21b Fix bad names in text.go 2019-01-07 21:30:46 +08:00
Yang Zhang
309e6892c3 Remove redundant init in text package 2019-01-02 23:32:56 +08:00
Yang Zhang
5cf7b19dcc Make runewidth treat ambiguous rune as short and fix ui display 2019-01-01 21:52:05 +08:00
Yang Zhang
d4fd895579 Add tests for critical internal functions in text.go 2018-12-31 13:16:53 +08:00
Yang Zhang
7c1df91d53 Refactor text.go to improve clearity 2018-12-31 11:00:05 +08:00
Yang Zhang
99bc0c140a Fix megacheck warnings 2018-12-31 09:02:35 +08:00
Yang Zhang
a0ae5fc534 Fix incorrect wrap of mixed wide and ascii chars 2018-12-31 08:53:11 +08:00
Yang Zhang
f22f9b7083 Implement a new wrap algorithm and pass all text tests 2018-12-31 01:57:10 +08:00
Yang Zhang
467ab5b68e Fix tests in left_padded 2018-12-30 08:38:31 +08:00
Yang Zhang
c0ce41540e Add back removed text functions 2018-12-30 08:38:31 +08:00
Yang Zhang
5241916535 Use ASCII ellipsis to workaround inaccurate width of unicode ellipsis 2018-12-30 08:38:31 +08:00
Yang Zhang
d31891504d Implement almost full CJK support.
Display of CJK contents are supported. Adding CJK tags are problematic.
2018-12-26 23:05:58 +08:00
Yang Zhang
3fa2d15fb8 Implement displaying CJK contents 2018-12-26 22:55:16 +08:00
Michael Muré
32b3e263fc
text: fix handling of wide characters 2018-12-25 21:17:11 +01:00
Michael Muré
7454b9505a
text: more chinese related fixes 2018-12-23 20:47:18 +01:00
Michael Muré
261aa61711
text: fix a wrapping bug leading to line longer than they should 2018-12-23 20:13:14 +01:00
Michael Muré
f9fc85ac82
text: hopefuly fix the handling of chinese 2018-12-23 19:00:51 +01:00
Michael Muré
5e74489126
text: fix broken truncate with unicode and use the ellipsis character in LeftPadMaxLine 2018-12-01 15:17:16 +01:00
Michael Muré
5d7c3a76af
bug: add the optional field AvatarUrl to Person 2018-09-25 17:55:20 +02:00
Michael Muré
bfb5e96aab
commands: git bug comment now show the comments of a bug 2018-09-15 20:30:31 +02:00
Michael Muré
7bec0b1f13
bug: add a data validation process to avoid merging incorrect operations 2018-09-15 13:15:00 +02:00
Michael Muré
3605887345 reorganize package for a more idomatic go 2018-09-11 22:14:46 +02:00