Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjonbrazil committed Nov 24, 2023
1 parent 69ce9b0 commit 62dccae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions jtbl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
__version__ = '1.6.0'
SUCCESS, ERROR = True, False

# START add DocuWiki table format
docuwiki_format = {
"docuwiki": tabulate.TableFormat(
# START add DokuWiki table format
dokuwiki_format = {
"dokuwiki": tabulate.TableFormat(
lineabove=tabulate.Line("|", "-", "|", "|"),
linebelowheader=tabulate.Line("|", "-", "|", "|"),
linebetweenrows=None,
Expand All @@ -23,8 +23,8 @@
with_header_hide=["lineabove"],
)
}
tabulate._table_formats.update(docuwiki_format) # type: ignore
# END add DocuWiki table format
tabulate._table_formats.update(dokuwiki_format) # type: ignore
# END add DokuWiki table format

def ctrlc(signum, frame):
"""exit with error on SIGINT"""
Expand All @@ -47,7 +47,7 @@ def helptext():
--cols=n manually configure the terminal width
-c, --csv CSV table output
-d, --docuwiki DocuWiki table output
-d, --dokuwiki DokuWiki table output
-f, --fancy fancy table output
-h, --help help
-H, --html HTML table output
Expand Down Expand Up @@ -322,7 +322,7 @@ def main():
long_options[arg[2:]] = None

csv = 'c' in options or 'csv' in long_options
docuwiki = 'd' in options or 'docuwiki' in long_options
dokuwiki = 'd' in options or 'dokuwiki' in long_options
html = 'H' in options or 'html' in long_options
markdown = 'm' in options or 'markdown' in long_options
fancy_grid = 'f' in options or 'fancy' in long_options
Expand All @@ -335,16 +335,16 @@ def main():

if markdown:
tbl_fmt = 'github'
elif docuwiki:
tbl_fmt = 'docuwiki'
elif dokuwiki:
tbl_fmt = 'dokuwiki'
elif html:
tbl_fmt = 'html'
elif fancy_grid:
tbl_fmt = 'fancy_grid'
else:
tbl_fmt = 'simple'

if not rotate and (markdown or docuwiki or html or csv):
if not rotate and (markdown or dokuwiki or html or csv):
nowrap = True

columns = None
Expand Down
2 changes: 1 addition & 1 deletion man/jtbl.1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cat data.json | jtbl [OPTIONS]

\fB-c\fP, \fB--csv\fP CSV table output

\fB-d\fP, \fB--docuwiki\fP DocuWiki table output
\fB-d\fP, \fB--dokuwiki\fP DokuWiki table output

\fB-f\fP, \fB--fancy\fP fancy table output

Expand Down

0 comments on commit 62dccae

Please sign in to comment.