We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a794440 commit d604b6bCopy full SHA for d604b6b
1 file changed
great_docs/assets/post-render.py
@@ -42,6 +42,8 @@ def format_signature_multiline(html_content):
42
arg1=default1,
43
arg2=default2,
44
)
45
+
46
+ Signatures that are already multiline (from quartodoc) are skipped.
47
"""
48
# Pattern to match the content inside signature spans
49
# The signature is inside <span id="cbN-1">...(args)</span>
@@ -54,6 +56,11 @@ def reformat_signature(match):
54
56
content = match.group(3)
55
57
span_end = match.group(4)
58
59
+ # Skip if signature is already multiline (quartodoc formatted it)
60
+ # This is detected by checking if content ends with just "(" or has a newline
61
+ if content.strip().endswith("(") or "\n" in content:
62
+ return full_match
63
64
# Find the opening paren position
65
paren_pos = content.find("(")
66
if paren_pos == -1:
0 commit comments