mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-03 23:57:17 -04:00
No longer strip spaces when printing the contents of entries
Former-commit-id: b508b32ada7f5908e742d89c4f01d0f5521ece1f Former-commit-id: c8f626440389451d760f7a856fbc709c2e70934c
This commit is contained in:
+5
-5
@@ -48,16 +48,16 @@ def entry_reader(_decrypted_entry):
|
|||||||
for _num in range(len(_entry_lines)):
|
for _num in range(len(_entry_lines)):
|
||||||
try:
|
try:
|
||||||
if _num == 0 and _entry_lines[1] != '\n':
|
if _num == 0 and _entry_lines[1] != '\n':
|
||||||
print(f"\u001b[38;5;15;48;5;238musername:\u001b[0m\n{_entry_lines[1].strip()}\n")
|
print(f"\u001b[38;5;15;48;5;238musername:\u001b[0m\n{_entry_lines[1]}\n")
|
||||||
elif _num == 1 and _entry_lines[0] != '\n':
|
elif _num == 1 and _entry_lines[0] != '\n':
|
||||||
print(f"\u001b[38;5;15;48;5;238mpassword:\u001b[0m\n{_entry_lines[0].strip()}\n")
|
print(f"\u001b[38;5;15;48;5;238mpassword:\u001b[0m\n{_entry_lines[0]}\n")
|
||||||
elif _num == 2 and _entry_lines[2] != '\n':
|
elif _num == 2 and _entry_lines[2] != '\n':
|
||||||
print(f"\u001b[38;5;15;48;5;238murl:\u001b[0m\n{_entry_lines[_num].strip()}\n")
|
print(f"\u001b[38;5;15;48;5;238murl:\u001b[0m\n{_entry_lines[_num]}\n")
|
||||||
elif _num >= 3 and _entry_lines[_num] != '\n' and _notes_flag != 1:
|
elif _num >= 3 and _entry_lines[_num] != '\n' and _notes_flag != 1:
|
||||||
_notes_flag = 1
|
_notes_flag = 1
|
||||||
print(f"\u001b[38;5;15;48;5;238mnotes:\u001b[0m\n{_entry_lines[_num].strip()}")
|
print('\u001b[38;5;15;48;5;238mnotes:\u001b[0m\n' + _entry_lines[_num].strip('\n'))
|
||||||
elif _num >= 3 and _notes_flag == 1:
|
elif _num >= 3 and _notes_flag == 1:
|
||||||
print(_entry_lines[_num].replace('\n', ''))
|
print(_entry_lines[_num].strip('\n'))
|
||||||
if _notes_flag == 1:
|
if _notes_flag == 1:
|
||||||
try:
|
try:
|
||||||
_line_test = _entry_lines[_num + 1]
|
_line_test = _entry_lines[_num + 1]
|
||||||
|
|||||||
Reference in New Issue
Block a user