Ignore:
Timestamp:
12/06/2023 09:34:40 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
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.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/loongarch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel/kernel-config.py

    recce62c rdb880b9  
    189189            elif line.startswith('endif'):
    190190                if_stack = if_stack[:-1]
     191
     192    if config_buf:
     193        r += [parse_config(config_buf)]
     194
    191195    return r
    192196
     
    251255for i0, val, i1, title, arrow, key, menu, comment in r:
    252256    rem = max_line
     257    is_choice = (val == '(X)')
    253258
    254259    if val:
     
    263268        title = title[:rem - 3] + '...'
    264269
    265     b = title.lstrip('YyMmNnHh')
     270    b = title
     271    if not is_choice:
     272        b = b.lstrip('YyMmNnHh.' + "".join(map(str, range(10))))
    266273    a = title[:len(title) - len(b)]
    267274    b0 = "<emphasis role='blue'>" + escape(b[0]) + "</emphasis>"
Note: See TracChangeset for help on using the changeset viewer.