Skip to content

Commit

Permalink
Implement indent_first_line, though unused
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed Nov 10, 2024
1 parent cfebbdc commit 0c236a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/templates/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ def zpy_help(*funcs, indentation=0, indent_first_line=False):
first, rest = content.split("\n", 1)
except ValueError:
return content
return f"{first}\n{indent(rest, ' ' * indentation)}"
return (
f"{' ' * (indentation if indent_first_line else 0)}"
f"{first}\n"
f"{indent(rest, ' ' * indentation)}"
)

0 comments on commit 0c236a5

Please sign in to comment.