From 64757e2cf55448bccfbbd60d31930ab3f59af21b Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 29 Mar 2022 09:35:54 -0700 Subject: [PATCH 1/3] doc formatting --- docs/parsers/asciitable.md | 12 ++++++------ jc/parsers/asciitable.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/parsers/asciitable.md b/docs/parsers/asciitable.md index 7fd59e0c..5c8a87bc 100644 --- a/docs/parsers/asciitable.md +++ b/docs/parsers/asciitable.md @@ -20,7 +20,7 @@ For example: │ hi there │ abc def │ 3.14 │ ╘══════════╧═════════╧════════╛ - or +or +-----------------------------+ | foo bar baz | @@ -29,14 +29,14 @@ For example: | hi there abc def 3.14 | +-----------------------------+ - or +or | foo | bar | baz | |----------|---------|--------| | good day | | 12345 | | hi there | abc def | 3.14 | - or +or foo bar baz --------- -------- ------ @@ -49,10 +49,10 @@ For example: good day 12345 hi there abc def 3.14 - etc... +etc... - Headers (keys) are converted to snake-case. All values are returned as - strings, except empty strings, which are converted to None/null. +Headers (keys) are converted to snake-case. All values are returned as +strings, except empty strings, which are converted to None/null. Usage (cli): diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index 52881c01..7b1a396b 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -15,7 +15,7 @@ For example: │ hi there │ abc def │ 3.14 │ ╘══════════╧═════════╧════════╛ - or +or +-----------------------------+ | foo bar baz | @@ -24,14 +24,14 @@ For example: | hi there abc def 3.14 | +-----------------------------+ - or +or | foo | bar | baz | |----------|---------|--------| | good day | | 12345 | | hi there | abc def | 3.14 | - or +or foo bar baz --------- -------- ------ @@ -44,10 +44,10 @@ For example: good day 12345 hi there abc def 3.14 - etc... +etc... - Headers (keys) are converted to snake-case. All values are returned as - strings, except empty strings, which are converted to None/null. +Headers (keys) are converted to snake-case. All values are returned as +strings, except empty strings, which are converted to None/null. Usage (cli): From fad5e544aa9e57d31473190e196f59c616901207 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 29 Mar 2022 09:58:44 -0700 Subject: [PATCH 2/3] formatting --- docs/parsers/asciitable.md | 2 +- jc/parsers/asciitable.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/parsers/asciitable.md b/docs/parsers/asciitable.md index 5c8a87bc..c3c129b0 100644 --- a/docs/parsers/asciitable.md +++ b/docs/parsers/asciitable.md @@ -43,7 +43,7 @@ or good day 12345 hi there abc def 3.14 - or +or foo bar baz good day 12345 diff --git a/jc/parsers/asciitable.py b/jc/parsers/asciitable.py index 7b1a396b..339329bb 100644 --- a/jc/parsers/asciitable.py +++ b/jc/parsers/asciitable.py @@ -38,7 +38,7 @@ or good day 12345 hi there abc def 3.14 - or +or foo bar baz good day 12345 From 7138eef3d137bc64286d4af453d8d4e7b3f4408d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 30 Mar 2022 14:39:56 -0700 Subject: [PATCH 3/3] fix newline chars in doc --- docs/parsers/asciitable_m.md | 6 +++--- jc/parsers/asciitable_m.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/parsers/asciitable_m.md b/docs/parsers/asciitable_m.md index 90ae4774..be7076b6 100644 --- a/docs/parsers/asciitable_m.md +++ b/docs/parsers/asciitable_m.md @@ -23,7 +23,7 @@ For example: ╘══════════╧═════════╧════════╛ Cells with multiple lines within rows will be joined with a newline -character ('\n'). +character ('\\n'). Headers (keys) are converted to snake-case and newlines between multi-line headers are joined with an underscore. All values are returned as strings, @@ -62,7 +62,7 @@ Examples: > +==========+=========+========+' | jc --asciitable-m -p [ { - "foo": "good day\nmate", + "foo": "good day\\nmate", "bar": "12345", "baz_buz": null }, @@ -86,7 +86,7 @@ Examples: > ╘══════════╧═════════╧════════╛' | jc --asciitable-m -p [ { - "foo": "good day\nmate", + "foo": "good day\\nmate", "bar": "12345", "baz_buz": null }, diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index 8ff3eed1..17d40a6f 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -18,7 +18,7 @@ For example: ╘══════════╧═════════╧════════╛ Cells with multiple lines within rows will be joined with a newline -character ('\n'). +character ('\\n'). Headers (keys) are converted to snake-case and newlines between multi-line headers are joined with an underscore. All values are returned as strings, @@ -57,7 +57,7 @@ Examples: > +==========+=========+========+' | jc --asciitable-m -p [ { - "foo": "good day\nmate", + "foo": "good day\\nmate", "bar": "12345", "baz_buz": null }, @@ -81,7 +81,7 @@ Examples: > ╘══════════╧═════════╧════════╛' | jc --asciitable-m -p [ { - "foo": "good day\nmate", + "foo": "good day\\nmate", "bar": "12345", "baz_buz": null },