mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Fix notes starting with blank lines differing in entry readout VS entry preview
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user