From cf63ea47cf35716f498e3cf488ff12b8a2edd379 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Mon, 11 Dec 2023 22:36:52 -0600 Subject: [PATCH] fix line endings sort of for really long lines --- src/get_todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get_todo.py b/src/get_todo.py index 1f41c16..680f164 100644 --- a/src/get_todo.py +++ b/src/get_todo.py @@ -239,7 +239,7 @@ def get_chars_position( def set_once(mode: SingleLineModeImpl, chars: list[str]) -> str: mode.set_once() - two_lines = "".join(chars).rsplit(" ", 1) + two_lines = "".join(chars).rsplit(None, 1) if len(two_lines) == 1: line = two_lines[0] mode.set_extra_data(line[-1])