Skip to content

Commit

Permalink
remove newline from output
Browse files Browse the repository at this point in the history
  • Loading branch information
yeoldegrove committed May 13, 2018
1 parent dc9642d commit 0df2d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qml/pages/passwordstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def show_login(input):
pyotherside.send('stdout', out)
pyotherside.send('stderr', err)
# replace some strings (login: )
out_replace = out.decode('utf-8').replace('login: ','')
out_replace = out.decode('utf-8').replace('login: ','').strip()
output = out_replace
return output

Expand All @@ -65,7 +65,7 @@ def show_pass(input):
# pyotherside.send('stdout', out)
pyotherside.send('stderr', err)
# replace some strings (login: )
out_replace = out.decode('utf-8').replace('login: ','')
out_replace = out.decode('utf-8').replace('login: ','').strip()
output = out_replace
return output

Expand All @@ -78,7 +78,7 @@ def show_url(input):
pyotherside.send('stdout', out)
pyotherside.send('stderr', err)
# replace some strings (login: )
out_replace = out.decode('utf-8').replace('url: ','')
out_replace = out.decode('utf-8').replace('url: ','').strip()
output = out_replace
return output

Expand All @@ -91,6 +91,6 @@ def git_pull():
pyotherside.send('stdout', out)
pyotherside.send('stderr', err)
# replace some strings (login: )
out_replace = out.decode('utf-8').replace('url: ','')
out_replace = out.decode('utf-8').replace('url: ','').strip()
output = out_replace
return output

0 comments on commit 0df2d42

Please sign in to comment.