We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15bb65a commit 6761edbCopy full SHA for 6761edb
src/lazydocs/generation.py
@@ -429,13 +429,16 @@ def _doc2md(obj: Any) -> str:
429
argindent = indent
430
elif arg_list and not literal_block and _RE_ARGSTART.match(line):
431
# start of an exception-type block
432
- out.append(
433
- "\n"
434
- + " " * blockindent
435
- + " - "
436
- + _RE_ARGSTART.sub(r"<b>`\1`</b>: \2", line)
437
- )
438
- argindent = indent
+ if indent > argindent:
+ out.append(" " + line)
+ else:
+ out.append(
+ "\n"
+ + " " * blockindent
+ + " - "
439
+ + _RE_ARGSTART.sub(r"<b>`\1`</b>: \2", line)
440
+ )
441
+ argindent = indent
442
elif indent > argindent:
443
# attach docs text of argument
444
# * (blockindent + 2)
0 commit comments