Changeset 9e76c64 for chapter10/kernel/kernel-config.py
- Timestamp:
- 02/08/2024 04:32:26 AM (8 months ago)
- Branches:
- xry111/clfs-ng
- Children:
- c7c614de
- Parents:
- e49e2ea (diff), 4816dc6 (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
re49e2ea r9e76c64 186 186 elif line.startswith('endif'): 187 187 if_stack = if_stack[:-1] 188 189 if config_buf: 190 r += [parse_config(config_buf)] 191 188 192 return r 189 193 … … 248 252 for i0, val, i1, title, arrow, key, menu, comment in r: 249 253 rem = max_line 254 is_choice = (val == '(X)') 250 255 251 256 if val: … … 260 265 title = title[:rem - 3] + '...' 261 266 262 b = title.lstrip('YyMmNnHh') 267 b = title 268 if not is_choice: 269 b = b.lstrip('YyMmNnHh.' + "".join(map(str, range(10)))) 263 270 a = title[:len(title) - len(b)] 264 271 b0 = "<emphasis role='blue'>" + escape(b[0]) + "</emphasis>" … … 287 294 from jinja2 import Template 288 295 289 t = Template('''<?xml version="1.0" encoding=" ISO-8859-1"?>296 t = Template('''<?xml version="1.0" encoding="UTF-8"?> 290 297 <!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 291 298 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
Note:
See TracChangeset
for help on using the changeset viewer.