home · contact · privacy
On testing, actually interpret TUI test of empty "> " prompt entering.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 30 Sep 2025 23:12:36 +0000 (01:12 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 30 Sep 2025 23:12:36 +0000 (01:12 +0200)
src/ircplom/testing.py

index 8efc742098b039d6749fee89d182a8191832b99b..c36dd151c2cb11dbe29a031316f7b15b099b86e5 100644 (file)
@@ -114,7 +114,7 @@ class _Playbook:
     def __init__(self, path: Path, get_client: Callable) -> None:
         self._get_client = get_client
         with path.open('r', encoding='utf8') as f:
-            self._lines = [line.rstrip() for line in f.readlines()]
+            self._lines = [line.rstrip('\n') for line in f.readlines()]
 
         def expand_parsed(marker, parse_into, **kwargs) -> bool:
             inserts: list[str] = []