From 241600408ae5598291c013bb7828874bb64eac56 Mon Sep 17 00:00:00 2001 From: Daniel Goldfarb Date: Tue, 11 Jan 2022 15:45:27 -0500 Subject: [PATCH] fix potential bug; wraplen must be > 0 (default to >=40) --- src/mplfinance/_kwarg_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mplfinance/_kwarg_help.py b/src/mplfinance/_kwarg_help.py index 75643908..ee5e70ca 100644 --- a/src/mplfinance/_kwarg_help.py +++ b/src/mplfinance/_kwarg_help.py @@ -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 = []