From e66a82ff49b40a674f9ef373a12d59fc71bfa730 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 23 Mar 2022 10:50:34 -0700 Subject: [PATCH] doc update --- CHANGELOG | 5 +++-- jc/parsers/asciitable_m.py | 4 ++-- man/jc.1 | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3b15aac3..407d8686 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,11 +1,12 @@ jc changelog -20220309 v1.18.6 (in progress) +20220323 v1.18.6 - Add pidstat command parser tested on linux - Add pidstat command streaming parser tested on linux - Add mpstat command parser tested on linux - Add mpstat command streaming parser tested on linux -- Add ASCII table parser +- Add single-line ASCII and Unicode table parser +- Add multi-line ASCII and Unicode table parser - Add documentation option to parser_info() and all_parser_info() 20220305 v1.18.5 diff --git a/jc/parsers/asciitable_m.py b/jc/parsers/asciitable_m.py index d11f2e5c..5f51b819 100644 --- a/jc/parsers/asciitable_m.py +++ b/jc/parsers/asciitable_m.py @@ -252,7 +252,7 @@ def _fixup_separators(line: str) -> str: def _normalize_rows(table_lines: Iterable[str]) -> List[Tuple[int, List[str]]]: """ - Return a List of tuples of a row counters and data lines. + Return a List of tuples of row-counters and data lines. """ result = [] header_found = False @@ -293,7 +293,7 @@ def _normalize_rows(table_lines: Iterable[str]) -> List[Tuple[int, List[str]]]: row_counter += 1 continue - # subsequent data row found + # data row found if not _is_separator(line) and header_found and data_found: line = _fixup_separators(line) line_list = line.split('|') diff --git a/man/jc.1 b/man/jc.1 index 7b642f1b..3d16284f 100644 --- a/man/jc.1 +++ b/man/jc.1 @@ -1,4 +1,4 @@ -.TH jc 1 2022-03-22 1.18.6 "JSON Convert" +.TH jc 1 2022-03-23 1.18.6 "JSON Convert" .SH NAME jc \- JSONifies the output of many CLI tools and file-types .SH SYNOPSIS