Skip to content

Commit

Permalink
Merge pull request #169 from pocek/fix-help-truncation
Browse files Browse the repository at this point in the history
Truncate help text to the first form feed, like click
  • Loading branch information
janluke committed Sep 7, 2023
2 parents 229f6e3 + d13e597 commit 71e44c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloup/formatting/_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def write_aliases(self, aliases: Sequence[str]) -> None:
def write_command_help_text(self, cmd: click.Command) -> None:
help_text = cmd.help or ""
if help_text and click_version_ge_8_1:
help_text = inspect.cleandoc(help_text)
help_text = inspect.cleandoc(help_text).partition("\f")[0]
if cmd.deprecated:
# Use the same label as Click:
# https://github.com/pallets/click/blob/b0538df/src/click/core.py#L1331
Expand Down

0 comments on commit 71e44c6

Please sign in to comment.