Comments (7)
@sunnyregion 可以详细描述一下吗,方便的话截个图
from table.
就是你的源代码copy运行,就会多出一列,我自己的程序是有几列就额外多出几列。
from table.
from table.
from table.
知道原因了,不是多了一列,是制表符宽度太大,导致每列之间的分隔竖线看起来都往左边凹进去了。因为字体或个人电脑设置的原因,制表符在 Windows 上显示的时候宽度无法控制。本项目后续版本可能会对此有所优化。
from table.
最新提交(59e3)新增了两个 API:
func OutputA(slice interface{})
func AsciiTable(slice interface{}) string
使用标准的 ascii 字符绘制表格,而不使用制表符。可以避免制表符宽度不一致引起的问题。
更多详情请查看 README.md。
from table.
谢谢,解决的很圆满。well done
from table.
Related Issues (5)
- 特殊字符导致表格错位 HOT 1
- table 支持调整吗? HOT 1
- 是否可以支持\r?
- 当输出带颜色字符时,表格错乱 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.