Skip to content
Myr

Fixed a bug with empty help texts causing extra newlines

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 2ca87b3 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:click/core.py+2 added-1 removed
303 unmodified lines
304305 def _format_usage(self, ctx, formatter):306 pieces = self._collect_usage_pieces(ctx)307 formatter.write_usage(ctx.command_path, ' '.join(pieces))308 formatter.write_paragraph()308309 def _format_help(self, ctx, formatter):310 if self.help:311 formatter.write_paragraph()312 with formatter.indentation():313 formatter.write_text(self.help)314315 def _format_options(self, ctx, formatter):
8 unmodified lines
324 formatter.write_dl(opts)325326 def _format_epilog(self, ctx, formatter):327 if self.epilog:328 formatter.write_paragraph()329 with formatter.indentation():330 formatter.write_text(self.epilog)331332 def make_context(self, info_name, args, parent=None, **extra):
685 unmodified lines