[accerciser] Fix for bug #650097 - accerciser shows all text attributes in the same row
- From: Javier HernÃndez AntÃnez <jhernandez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] Fix for bug #650097 - accerciser shows all text attributes in the same row
- Date: Sat, 2 Jul 2011 22:12:11 +0000 (UTC)
commit 5b156e30ed26e035e8a579dc6a53b7eb60b90ace
Author: Josà MillÃn Soto <fid gpul org>
Date: Fri May 13 11:32:25 2011 +0200
Fix for bug #650097 - accerciser shows all text attributes in the same row
plugins/interface_view.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 82678fb..279c356 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -1274,8 +1274,10 @@ class _SectionText(_InterfaceSection):
if not attr_string:
return {}
attr_dict = {}
- for attr_pair in attr_string.split('; '):
+ for attr_pair in attr_string.split(';'):
key, value = attr_pair.split(':', 1)
+ if ((key[0]==' ') and (len(key) > 0)): #at-spi 1
+ key = key[1:]
attr_dict[key] = value
return attr_dict
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]