[orca/570658] Use table cell delimiter when dealing with multiple objects in a cell
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Use table cell delimiter when dealing with multiple objects in a cell
- Date: Wed, 8 Jul 2009 00:11:53 +0000 (UTC)
commit ff7175672a6fe0020e41f6346cc12729809615f0
Author: Willie Walker <william walker sun com>
Date: Tue Jul 7 19:58:23 2009 -0400
Use table cell delimiter when dealing with multiple objects in a cell
src/orca/scripts/apps/soffice/braille_generator.py | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/braille_generator.py b/src/orca/scripts/apps/soffice/braille_generator.py
index ffbb5e5..7ee0f4d 100644
--- a/src/orca/scripts/apps/soffice/braille_generator.py
+++ b/src/orca/scripts/apps/soffice/braille_generator.py
@@ -168,7 +168,11 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
_generateRealTableCell(self, obj, **args))
else:
for child in obj:
- result.extend(self._generateRealTableCell(child, **args))
+ cellResult = self._generateRealTableCell(child, **args)
+ if cellResult and result and self._mode == 'braille':
+ result.append(braille.Region(
+ settings.brailleTableCellDelimiter))
+ result.extend(cellResult)
return result
def _generateTableCellRow(self, obj, **args):
@@ -216,8 +220,10 @@ class BrailleGenerator(braille_generator.BrailleGenerator):
showing = cell.getState().contains( \
pyatspi.STATE_SHOWING)
if showing:
- cellResult = self._generateRealTableCell(cell, **args)
- if cellResult and result and self._mode == 'braille':
+ cellResult = self._generateRealTableCell(cell,
+ **args)
+ if cellResult and result \
+ and self._mode == 'braille':
result.append(braille.Region(
settings.brailleTableCellDelimiter))
result.extend(cellResult)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]