[gedit-plugins] Properly escape command name



commit 09cb41d2ad6e9e24d213607ba77713c7a1772a3d
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Mar 21 23:06:04 2010 +0100

    Properly escape command name

 plugins/commander/commander/entry.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/commander/commander/entry.py b/plugins/commander/commander/entry.py
index 9144026..4e864d7 100644
--- a/plugins/commander/commander/entry.py
+++ b/plugins/commander/commander/entry.py
@@ -553,7 +553,7 @@ class Entry(gtk.EventBox):
 
 			for x in res:
 				if isinstance(x, commands.method.Method):
-					ret.append('<b>' + x.name + '</b> (<i>' + x.oneline_doc() + '</i>)')
+					ret.append('<b>' + saxutils.escape(x.name) + '</b> (<i>' + x.oneline_doc() + '</i>)')
 				else:
 					ret.append(str(x))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]