Commit 6b90944
Patrick Wehbe
π Fix out-of-range highlight lines in docs code embeds
Three docs `{* file hl[a:b] *}` embeds set the inclusive upper bound one
line past the end of the referenced file:
- `advanced/response-headers.md`: `hl[10:12]` -> `hl[10:11]`
(`docs_src/response_headers/tutorial001_py310.py` is 11 lines)
- `advanced/websockets.md`: `hl[48:52]` -> `hl[48:51]`
(`docs_src/websockets_/tutorial001_py310.py` is 51 lines)
- `tutorial/body-updates.md`: `hl[28:33]` -> `hl[28:32]`
(`docs_src/body_updates/tutorial001_py310.py` is 32 lines)
The rendered output is unchanged since the nonexistent trailing line was
silently dropped; this corrects the ranges to the intended last line.1 parent 0cb4a8e commit 6b90944
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments