From 8a6c5102dfd3c6acf99e84dceea872f0535ad1ce Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 17 Nov 2026 04:27:12 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1=20(0=20misread);=20a=20comment?= =?UTF-8?q?=20records=20that=20a=20name=20opening=20and=20ending=20in=20a?= =?UTF-8?q?=20space=20isn't=20read=20back=20from=20Jira?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/touch_predictions/prediction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/touch_predictions/prediction.py b/bin/touch_predictions/prediction.py index 9503cb7a..e8577c64 100644 --- a/bin/touch_predictions/prediction.py +++ b/bin/touch_predictions/prediction.py @@ -81,7 +81,7 @@ def code_span(line: str, at: int) -> tuple[str, int] | None: if opened is None or closed is None: return None text = line[opened.end():opened.end() + closed.start()] - # In a longer run, a space at both ends is padding, which keeps a backtick at either end of the text apart from the run. Without one at both ends, the span is its text. + # In a longer run, a space at both ends is padding, which keeps a backtick at either end of the text apart from the run. Without one at both ends, the span is its text. A one-backtick span is always its text, so a name that opens and ends in a space isn't read back from Jira, whose codec pads it; no path or heading is spelt so. if len(run) > 1 and text.startswith(" ") and text.endswith(" "): text = text[1:-1] return (text, opened.end() + closed.end()) if text else None