Ignore:
Timestamp:
08/01/2023 01:22:41 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
f11dce68
Parents:
0f6e309
git-author:
Xi Ruoyao <xry111@…> (08/01/2023 01:22:00 AM)
git-committer:
Xi Ruoyao <xry111@…> (08/01/2023 01:22:41 AM)
Message:

kernel-config: Separate toplevel menus with empty lines

File:
1 edited

Legend:

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

    r0f6e309 rddf89fff  
    244244        raise Exception("%s seems not exist" % i)
    245245
     246sep = known_config.get('separate_toplevel_menu')
     247
    246248for i0, val, i1, title, arrow, key, menu, comment in r:
    247249    rem = max_line
     
    276278    if comment:
    277279        comment = '\n'.join([' ' * i0 + '# ' + line for line in comment])
    278         line = escape(comment) + ':\n' + line
     280        buf += [escape(comment) + ':']
     281
     282    if not menu and buf:
     283        buf += ['']
    279284
    280285    buf += [line.rstrip()]
Note: See TracChangeset for help on using the changeset viewer.