Skip to content
Myr

Properly skip empty second parts in dls

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

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:click/formatting.py+3 added
182 unmodified lines
183 first_col = min(widths[0], col_max) + col_spacing184185 for first, second in iter_rows(rows, len(widths)):186 self.write('%*s%s' % (self.current_indent, '', first))187 if not second:188 self.write('\n')189 continue190 if len(first) <= first_col - col_spacing:191 self.write(' ' * (first_col - len(first)))192 else:193 self.write('\n')
34 unmodified lines