-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
字符串长度计算错误 #8
Comments
util.Length函数是为了在表格打印时正确的对齐带有颜色的column,而不是用来返回真实的长度。目前没有API返回column名称的长度。后面会加上这个API。 |
收到~ 我这边稍后改进一下。是否可以要一下联系邮箱或其他方式呢? |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
传入的值在使用
https://github.com/gookit/color
渲染上颜色信息后会导致字符长度计算得出的值比实际显示的长度大
看了源码应该是util/strings.go文件中Length方法在计
算时没有去除一些不会在控制台进行显示的字符
目前在我自己的项目中先进行了临时的更改,如下:
希望后续可以优化一下这方面
The text was updated successfully, but these errors were encountered: