1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

fix for slicing blank lines

This commit is contained in:
Kelly Brazil
2024-01-16 14:21:33 -08:00
parent 2cd58d75e7
commit f863cfdef4

View File

@ -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:]: