Read a Touches list from a Jira description, as the codec spells it, and reword the expiry and goal citations of six decisions #574

Merged
lilleman merged 10 commits from item-381 into main 2026-11-17 04:42:11 +01:00
Showing only changes of commit 8a6c5102df - Show all commits
+1 -1
View File
@@ -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