Skip to content

Commit

Permalink
possible fix to rstrip of banners
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kala committed Aug 27, 2024
1 parent 78dd931 commit 1206936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netutils/config/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _build_banner(self, config_line: str) -> t.Optional[str]:
line = "\n".join(banner_config)
if line.endswith("^C"):
banner, end, _ = line.rpartition("^C")
line = banner.rstrip() + end
line = banner.rstrip(" ") + end
self._update_config_lines(line)
self._current_parents = self._current_parents[:-1]
try:
Expand Down

0 comments on commit 1206936

Please sign in to comment.