Skip to content

Commit

Permalink
fix potential bug; wraplen must be > 0 (default to >=40)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGoldfarb committed Jan 11, 2022
1 parent 9c32bf6 commit 2416004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mplfinance/_kwarg_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def kwarg_help( func_name=None, kwarg_names=None ):
klen = df['Kwarg'].str.len().max()+1
dlen = df['Default'].str.len().max()+1

wraplen = 80 - ( klen + dlen )
wraplen = max( 40, 80-(klen+dlen) )
df = df_wrapcols(df,wrap_columns={'Description':wraplen})

dividers = []
Expand Down

0 comments on commit 2416004

Please sign in to comment.