Changeset 7cce808


Ignore:
Timestamp:
12/06/2023 09:26:10 AM (5 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
00de269, 03682b2, d60b247, db880b9
Parents:
31a9142
Message:

kernel-config: The hot key for choices is just the first character

Stupid inconsistency...

Location:
chapter10/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel/highmem.xml

    r31a9142 r7cce808  
    66<screen role="nodump"><emphasis role='blue'>P</emphasis>rocessor type and features ---&gt;
    77  H<emphasis role='blue'>i</emphasis>gh Memory Support ---&gt;
    8     (X) 64<emphasis role='blue'>G</emphasis>B                                                        [HIGHMEM64G]</screen>
     8    (X) <emphasis role='blue'>6</emphasis>4GB                                                        [HIGHMEM64G]</screen>
  • chapter10/kernel/kernel-config.py

    r31a9142 r7cce808  
    252252for i0, val, i1, title, arrow, key, menu, comment in r:
    253253    rem = max_line
     254    is_choice = (val == '(X)')
    254255
    255256    if val:
     
    264265        title = title[:rem - 3] + '...'
    265266
    266     b = title.lstrip('YyMmNnHh.' + "".join(map(str, range(10))))
     267    b = title
     268    if not is_choice:
     269        b = b.lstrip('YyMmNnHh.' + "".join(map(str, range(10))))
    267270    a = title[:len(title) - len(b)]
    268271    b0 = "<emphasis role='blue'>" + escape(b[0]) + "</emphasis>"
Note: See TracChangeset for help on using the changeset viewer.