diff --git a/docs/parsers/asciitable.md b/docs/parsers/asciitable.md index e367ad63..bd1e9d23 100644 --- a/docs/parsers/asciitable.md +++ b/docs/parsers/asciitable.md @@ -8,7 +8,12 @@ jc - JSON Convert `asciitable` parser This parser converts ASCII and Unicode text tables with single-line rows. Column headers must be at least two spaces apart from each other and must -be unique. +be unique. For best results, column headers should be left-justified. If +column separators are present, then non-left-justified headers will be fixed +automatically. + +Row separators are optional and are ignored. Each non-row-separator line is +considered a separate row in the table. For example: diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index 6f46f976..5d4317b7 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -3,7 +3,12 @@ This parser converts ASCII and Unicode text tables with single-line rows. Column headers must be at least two spaces apart from each other and must -be unique. +be unique. For best results, column headers should be left-justified. If +column separators are present, then non-left-justified headers will be fixed +automatically. + +Row separators are optional and are ignored. Each non-row-separator line is +considered a separate row in the table. For example: