Skip to content
Myr

Merge pull request #1013 from kporangehat/progressbar_newline

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

Don't add newlines by default for progressbars

authored by KP · committed by GitHub · parents 0650d36, b098d6e · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_termui_impl.py+1 added-1 removed
231 unmodified lines
232 # Render the line only if it changed.233234 if line != self._last_line and not self.is_fast():235 self._last_line = line236 echo(line, file=self.file, color=self.color, nl=True)236 echo(line, file=self.file, color=self.color, nl=False)237 self.file.flush()238239 def make_step(self, n_steps):240 self.pos += n_steps
337 unmodified lines