[openbox] remove double quotes from menu labels (#630109)
Miroslav Lichvar
mlichvar at fedoraproject.org
Tue Sep 7 12:08:36 UTC 2010
commit 4c7b3d47c8ab57f2fccb9b7e7c66e8e571b1c4cc
Author: Den <den.mail at free.fr>
Date: Tue Sep 7 14:03:39 2010 +0200
remove double quotes from menu labels (#630109)
xdg-menu | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/xdg-menu b/xdg-menu
index 0a8c1bc..f551adb 100644
--- a/xdg-menu
+++ b/xdg-menu
@@ -29,7 +29,8 @@ def walk_menu(entry):
map(walk_menu, entry.get_contents())
print '</menu>'
elif entry.get_type() == gmenu.TYPE_ENTRY and not entry.is_excluded:
- print ' <item label="%s">' % escape(entry.get_name())
+ print ' <item label="%s">' % \
+ escape(entry.get_name().replace('"', ''))
command = re.sub(' [^ ]*%[fFuUdDnNickvm]', '', entry.get_exec())
if entry.launch_in_terminal:
command = 'xterm -title "%s" -e %s' % \
More information about the scm-commits
mailing list