Skip to content

Commit 1b719a8

Browse files
committed
Pick the line after the description when attaching spec annotations.
There's no guarantee it'll be the line with `"specification"` but it's no worse than the previous line, and often will be right.
1 parent 0810515 commit 1b719a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/annotate-specification-links

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def line_number_of(path: Path, case: dict[str, Any]) -> int:
5757
with path.open() as file:
5858
description = case["description"]
5959
return next(
60-
(i for i, line in enumerate(file, 1) if description in line),
60+
(i + 1 for i, line in enumerate(file, 1) if description in line),
6161
1,
6262
)
6363

0 commit comments

Comments
 (0)