Skip to content

Commit cb22826

Browse files
committed
Change docstring to not break on hyphens
1 parent a06de16 commit cb22826

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy