Skip to content

Commit

Permalink
support spaces at the start and end of titles and units (removed trim)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalmei committed Jun 1, 2023
1 parent ccd78ca commit 99ec538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alive_progress/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _input(x):

def _text_input_factory():
def _input(x):
return None if x is None else ' '.join(PATTERN_SANITIZE.split(str(x))).strip()
return None if x is None else sanitize(str(x))

return _input

Expand Down

0 comments on commit 99ec538

Please sign in to comment.