From f5f3133b87405af869e9cdffe4ba855e98697711 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 1 May 2022 10:27:34 -0700 Subject: [PATCH] add note about table column separators not being allowed in cell data --- docs/parsers/asciitable_m.md | 3 +++ jc/parsers/asciitable_m.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/parsers/asciitable_m.md b/docs/parsers/asciitable_m.md index be7076b6..b1ceff86 100644 --- a/docs/parsers/asciitable_m.md +++ b/docs/parsers/asciitable_m.md @@ -29,6 +29,9 @@ Headers (keys) are converted to snake-case and newlines between multi-line headers are joined with an underscore. All values are returned as strings, except empty strings, which are converted to None/null. +> Note: table column separator characters (e.g. `|`) cannot be present + inside the cell data. + Usage (cli): $ cat table.txt | jc --asciitable-m diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index 17d40a6f..b7078aa4 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -24,6 +24,9 @@ Headers (keys) are converted to snake-case and newlines between multi-line headers are joined with an underscore. All values are returned as strings, except empty strings, which are converted to None/null. +> Note: table column separator characters (e.g. `|`) cannot be present + inside the cell data. + Usage (cli): $ cat table.txt | jc --asciitable-m