From ba5f118048282af8a46adb24b9447f303fd14dcb Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 20 Jun 2023 11:44:13 -0400 Subject: [PATCH] Do not append extra new lines in line_edit Former-commit-id: b2aefd5723c643f625865ea76957b2dbe560b58f Former-commit-id: 194dd58228db64c0d55089edfe60055ed9492860 --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index d6b2e10..3bbbe78 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -249,7 +249,7 @@ def target_type_check(_target_name, _expected_type=True, _error=False): def line_edit(_lines, _edit_data, _edit_line): # ensure enough lines are present for edited field while len(_lines) < _edit_line + 1: - _lines.append('\n') + _lines.append('') # write the edited field _lines[_edit_line] = _edit_data.rstrip() return _lines