-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94320ba
commit 834c95a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# realign-text-table | ||
|
||
`realign-text-table` redraws malformed ASCII-drawn tables | ||
|
||
# Example | ||
|
||
`realign-text-table` reads stdin or argument file. | ||
When given this table as stdin: | ||
|
||
+-----+-----+ | ||
| foo | bar | | ||
+-----+-----+ | ||
| a long cell | short | | ||
| x | longer cell ? | | ||
+--+--+ | ||
|
||
it will output a well-formed table: | ||
|
||
+-------------+---------------+ | ||
| foo | bar | | ||
+-------------+---------------+ | ||
| a long cell | short | | ||
| x | longer cell ? | | ||
+-------------+---------------+ | ||
|
||
# Dependencies | ||
`realign-text-table` uses Python and PrettyTable. |