Clean docstrings when generating actions docs
This commit is contained in:
parent
a8f7b1eb92
commit
cf41d56c00
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def is_action(x: object) -> bool:
|
|||
return bool(doc and doc.strip().startswith('@ac:'))
|
||||
|
||||
def as_action(x: object) -> Action:
|
||||
doc = (x.__doc__ or '').strip()
|
||||
doc = inspect.cleandoc(x.__doc__ or '')
|
||||
lines = doc.splitlines()
|
||||
first = lines.pop(0)
|
||||
parts = first.split(':', 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue