Repository navigation
Commit 3e9743a
authored
fix(knowledge): status phrases are matched across wrapped lines (#14101)
* test(knowledge): a status phrase that wraps across a line break warns
Red: check:knowledge reads status phrases one physical line at a time, so
"not" at the end of one line and "built." at the start of the next is
missed. Two list items or two table rows that only touch must not join.
* fix(knowledge): status phrases are matched across wrapped lines
check:knowledge matched each status phrase within one physical line, so a
phrase wrapped across a line break went unreported. It now matches each run
of wrapped lines (a list item or table row starts its own run) and reports
the hit at the line where the phrase starts. AST-057 gets the one newly found
phrase reworded; the two in AST-103 are reworded by #14089.
* test(knowledge): a table without outer pipes keeps its rows apart
Red: a GitHub table may leave out the outer pipes, so a row need not start
with one, and the wrapped-phrase match joins two such rows.
* fix(knowledge): a table row without outer pipes is a run of its own
In a paragraph with a table's delimiter row, every line with a pipe is a row,
as GitHub tables may leave out the outer pipes.1 parent 9dfe5ff commit 3e9743a
3 files changed
Lines changed: 116 additions & 11 deletions
File tree
- docs/specs/AST-057-row-actions
- scripts/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
102 | 143 | | |
103 | 144 | | |
104 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
105 | 153 | | |
106 | | - | |
| 154 | + | |
107 | 155 | | |
108 | 156 | | |
109 | 157 | | |
| |||
130 | 178 | | |
131 | 179 | | |
132 | 180 | | |
| 181 | + | |
133 | 182 | | |
134 | 183 | | |
135 | 184 | | |
136 | 185 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
140 | 196 | | |
141 | 197 | | |
142 | 198 | | |
| |||
166 | 222 | | |
167 | 223 | | |
168 | 224 | | |
169 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
170 | 229 | | |
171 | 230 | | |
172 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
56 | 102 | | |
57 | 103 | | |
58 | 104 | | |
| |||
0 commit comments