Skip to content
Myr

Fixed a bug with rewrapping of options.

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 fe89108 · Browse files · 1 file+6 added−3 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+6 added−3 removed

  • other:+6 added−3 removed

1 file+6 added−3 removed

modified:click/formatting.py+6 added-3 removed
215 unmodified lines
216 else:217 self.write('\n')218 self.write(' ' * (first_col + self.current_indent))219 text_width = self.width - first_col - 2220 self.write(wrap_text(221 second, text_width, initial_indent='',222 subsequent_indent=' ' * (first_col + self.current_indent)))220 lines = iter(wrap_text(second, text_width).splitlines())221 if lines:222 self.write(next(lines) + '\n')223 for line in lines:224 self.write('%*s%s\n' % (225 first_col + self.current_indent, '', line))226 self.write('\n')227228 @contextmanager229 def section(self, name):
25 unmodified lines