Skip to content

Commit

Permalink
Fix notes starting with blank lines differing in entry readout VS ent…
Browse files Browse the repository at this point in the history
…ry preview
  • Loading branch information
rwinkhart committed Jan 8, 2024
1 parent ae21489 commit 0990bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sshyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def add_entry():
else:
_note = ''
print('\n\u001b[1mentry preview:\u001b[0m')
entry_reader([_password, _username, _url, _note])
entry_reader([_password, _username, _url] + _note.split('\n'))
encrypt([_password, _username, _url, _note], directory + entry_name, gpg_id)


Expand Down Expand Up @@ -515,7 +515,7 @@ def gen():
_note = edit_note([])
else:
_note = ''
_new_lines = [_password, _username, _url, _note]
_new_lines = [_password, _username, _url] + _note.split('\n')
print('\n\u001b[1mentry preview:\u001b[0m')
entry_reader(_new_lines)
encrypt(_new_lines, directory + entry_name, gpg_id)
Expand Down

0 comments on commit 0990bae

Please sign in to comment.