From 7138eef3d137bc64286d4af453d8d4e7b3f4408d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 30 Mar 2022 14:39:56 -0700 Subject: [PATCH] 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 },