mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
fix for slicing blank lines
This commit is contained in:
@ -402,6 +402,8 @@ def _lazy_splitlines(text: str) -> Iterable[str]:
|
|||||||
begin, end = m.span()
|
begin, end = m.span()
|
||||||
if begin != start:
|
if begin != start:
|
||||||
yield text[start:begin]
|
yield text[start:begin]
|
||||||
|
else:
|
||||||
|
yield ''
|
||||||
start = end
|
start = end
|
||||||
|
|
||||||
if text[start:]:
|
if text[start:]:
|
||||||
|
Reference in New Issue
Block a user