mattn / go-runewidth

wcwidth for golang
MIT License
609 stars 94 forks source link

add unicode categories Zl and Zp to the non-printable table #13

Closed joshuarubin closed 7 years ago

joshuarubin commented 7 years ago

Unicode categories Zl and Zp (each of which has only a single character, U+2028 [line separator] and U+2029 [paragraph separator]) should be treated the same as similar characters like newline which return a width of 0. Previously they returned 1 which doesn't make sense.

mattn commented 7 years ago

Thank you