From a76b5db8db101115046c95feee0d22a3a1495923 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 26 May 2022 11:37:16 -0700 Subject: [PATCH] doc update --- docs/parsers/asciitable.md | 7 ++++++- jc/parsers/asciitable.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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: