mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
strip newlines from today output before displaying in status bar
This commit is contained in:
parent
cebcfaa0e9
commit
7db5fe0a5d
@ -336,6 +336,8 @@ class FetchStatusBarCodingTime(threading.Thread):
|
|||||||
process = Popen(cmd, stdout=PIPE, stderr=STDOUT)
|
process = Popen(cmd, stdout=PIPE, stderr=STDOUT)
|
||||||
output, err = process.communicate()
|
output, err = process.communicate()
|
||||||
output = u(output)
|
output = u(output)
|
||||||
|
if output:
|
||||||
|
output = output.strip()
|
||||||
retcode = process.poll()
|
retcode = process.poll()
|
||||||
if not retcode and output:
|
if not retcode and output:
|
||||||
msg = 'Today: {output}'.format(output=output)
|
msg = 'Today: {output}'.format(output=output)
|
||||||
|
Loading…
Reference in New Issue
Block a user