Browse Source

Adjust spacing for compizboxmenu

Use spaces instead of tabs for spacing. Also add an additional level of
spacing for each item in the menu.
pull/8/head
George Vlahavas 9 years ago
parent
commit
f1147cf644
  1. 4
      src/xdgmenumaker

4
src/xdgmenumaker

@ -603,7 +603,7 @@ def jwmmenu():
def compizboxmenu():
if submenu:
spacing = '\t'
spacing = ' '
if seticon:
app_icon = icon_full_path(applications_icon)
if app_icon is None:
@ -631,7 +631,7 @@ def compizboxmenu():
if path is not None:
command = 'sh -c \'cd "' + path.replace("'", "'\\''") + '" ; ' + command.replace("'", "'\\''") + '\''
if seticon and icon is not None:
print(('{}<item type="launcher"><name>{}</name>'
print(('{} <item type="launcher"><name>{}</name>'
'<icon>{}</icon>'
'<command>{}</command></item>').format(spacing,
name, icon, command.replace('&', '&amp;')))

Loading…
Cancel
Save