Align columns in ASCII tables
Aligns columns in your ASCII tables.
pip install tablign
tablign in.txt out.txt
you can convert your input file
| A | 1.34|-214.1| |CCCC | 55.534| 1131.1|
| A | 1.34 | -214.1 | | CCCC | 55.534 | 1131.1 |
Column widths are unified across the table, decimal dots are aligned, and tablign tries
to be smart about column separators. Works for CSV, LaTeX, Markdown etc. By default,
tablign reads from stdin and writes to stdout, so you can use pipes with tablign, too:
head -n in.txt | tablign
Usage from vim
Simply mark the table (shift-V), and type
column command is a mighty alternative:
See here for more alternatives.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.