Skip to content

Commit a5c3a86

Browse files
authored
Merge pull request #5192 from plotly/fix-docstring
Change docstring to not break on hyphens
2 parents a06de16 + cb22826 commit a5c3a86

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plotly/express/_doc.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,12 @@
612612
def make_docstring(fn, override_dict=None, append_dict=None):
613613
override_dict = {} if override_dict is None else override_dict
614614
append_dict = {} if append_dict is None else append_dict
615-
tw = TextWrapper(width=75, initial_indent=" ", subsequent_indent=" ")
615+
tw = TextWrapper(
616+
width=75,
617+
initial_indent=" ",
618+
subsequent_indent=" ",
619+
break_on_hyphens=False,
620+
)
616621
result = (fn.__doc__ or "") + "\nParameters\n----------\n"
617622
for param in getfullargspec(fn)[0]:
618623
if override_dict.get(param):

0 commit comments

Comments
 (0)