Skip to content

Commit

Permalink
remove log, indent
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Sep 3, 2018
1 parent 003c285 commit e712c09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py3status/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,15 +956,15 @@ def process_module_output(self, module):
if max_size:
if isinstance(max_size, bool):
max_size = int((len(full_text) + 1) / 2)
self.log(max_size)
short = full_text[:int(max_size)]
self.log(short)
short = short + '..' if len(short + '..') < len(full_text) else short
self.log(short)
short = short + '..' if len(short + '..') < len(
full_text) else short
output['short_text'] = short
elif isinstance(max_size, int):
short = full_text[:max_size] if len(full_text) > int(max_size) else full_text
short = short + '..' if len(short + '..') < len(full_text) else short
short = full_text[:max_size] if len(
full_text) > int(max_size) else full_text
short = short + '..' if len(
short + '..') < len(full_text) else short
output['short_text'] = short

ret = ','.join([dumps(x) for x in outputs])
Expand Down

0 comments on commit e712c09

Please sign in to comment.