diff --git a/docs/utils.py b/docs/utils.py index 9fe347634..727343697 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -9,5 +9,5 @@ def format_doc_line(line): # Bold the : part of each line line = re.sub(r"\+ ([0-9a-z_\/\*]+)(.*)", r"+ **\1**\2", line) - # Strip the first 4 characters (first indent from docstring) - return line[4:] + # Python's __doc__ attribute already dedents docstrings, so we don't need to strip anything + return line diff --git a/scripts/generate_arguments_doc.py b/scripts/generate_arguments_doc.py index ec9410f07..33feba6ca 100755 --- a/scripts/generate_arguments_doc.py +++ b/scripts/generate_arguments_doc.py @@ -40,6 +40,7 @@ def build_arguments_doc(): if arguments_title_doc: lines.append(cleandoc(arguments_title_doc)) + lines.append("") lines.append( """.. list-table:: diff --git a/src/pyinfra/facts/crontab.py b/src/pyinfra/facts/crontab.py index ba30562c0..383045905 100644 --- a/src/pyinfra/facts/crontab.py +++ b/src/pyinfra/facts/crontab.py @@ -125,15 +125,15 @@ class Crontab(FactBase[CrontabFile]): # or CrontabFile.to_json() [ { - command: "/path/to/command", - minute: "*", - hour: "*", - month: "*", - day_of_month: "*", - day_of_week: "*", + "command": "/path/to/command", + "minute": "*", + "hour": "*", + "month": "*", + "day_of_month": "*", + "day_of_week": "*", }, { - "command": "echo another command + "command": "echo another command", "special_time": "@daily", } ]