From f863cfdef45b25c10049e5f417e6a4d8baf53682 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 16 Jan 2024 14:21:33 -0800 Subject: [PATCH] fix for slicing blank lines --- jc/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jc/utils.py b/jc/utils.py index e6f2cbdc..3fc8df6f 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -402,6 +402,8 @@ def _lazy_splitlines(text: str) -> Iterable[str]: begin, end = m.span() if begin != start: yield text[start:begin] + else: + yield '' start = end if text[start:]: