Skip to content

Commit

Permalink
- change pad_tables to pad-tables in the cli option
Browse files Browse the repository at this point in the history
- Add to usage
  • Loading branch information
theSage21 committed May 29, 2016
1 parent f84b591 commit e1872ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ Command line options
| `--mark-code` | Mark code with [code]...[/code] blocks
| `--no-wrap-links` | Do not wrap links during text wrapping. Implies `--reference-links`
| `--decode-errors`=`HANDLER` | What to do in case an error is encountered. `ignore`, `strict`, `replace` etc.
| `--pad-tables` | Use padding to make tables look good.
2 changes: 1 addition & 1 deletion html2text/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class bcolors: # pragma: no cover
version='%prog ' + ".".join(map(str, __version__))
)
p.add_option(
"--pad_tables",
"--pad-tables",
dest="pad_tables",
action="store_true",
default=config.PAD_TABLES,
Expand Down
2 changes: 1 addition & 1 deletion test/test_html2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_func(self):

if base_fn.startswith('pad_table'):
module_args['pad_tables'] = True
cmdline_args.append('--pad_tables')
cmdline_args.append('--pad-tables')

if base_fn not in ['bodywidth_newline.html', 'abbr_tag.html']:
test_func = None
Expand Down

0 comments on commit e1872ba

Please sign in to comment.