Commit ea5a8499 authored by Lucas Bourneuf's avatar Lucas Bourneuf

Default documentation fix

parent c6456d1f
......@@ -300,7 +300,9 @@ def build_script_from_module(module, *, defaults:dict={}) -> Script or ScriptErr
# detect trivias
tags = frozenset(getattr(module, 'TAGS', defaults.get('tags', {'undefined'})))
doc = '\n'.join(textwrap.wrap(textwrap.dedent(module.__doc__).strip()))
doc = DEFAULT_DOC
if module.__doc__:
doc = '\n'.join(textwrap.wrap(textwrap.dedent(module.__doc__).strip()))
# build and return the Script instance
return Script(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment