Changeset db880b9 for chapter10/kernel/kernel-config.py
- Timestamp:
- 12/06/2023 09:34:40 AM (10 months ago)
- Branches:
- xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2
- Children:
- 9ef0338a
- Parents:
- ecce62c (diff), 7cce808 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/kernel/kernel-config.py
recce62c rdb880b9 189 189 elif line.startswith('endif'): 190 190 if_stack = if_stack[:-1] 191 192 if config_buf: 193 r += [parse_config(config_buf)] 194 191 195 return r 192 196 … … 251 255 for i0, val, i1, title, arrow, key, menu, comment in r: 252 256 rem = max_line 257 is_choice = (val == '(X)') 253 258 254 259 if val: … … 263 268 title = title[:rem - 3] + '...' 264 269 265 b = title.lstrip('YyMmNnHh') 270 b = title 271 if not is_choice: 272 b = b.lstrip('YyMmNnHh.' + "".join(map(str, range(10)))) 266 273 a = title[:len(title) - len(b)] 267 274 b0 = "<emphasis role='blue'>" + escape(b[0]) + "</emphasis>"
Note:
See TracChangeset
for help on using the changeset viewer.