Commit 3f82ab6
authored
Remove carriage return and bell character from table header information in IAccessible MS Word (#16874)
Closes #7212
Summary of the issue:
When accessing Microsoft Word via IAccessible, column and row headers set with the set row/column header scripts in NVDA have '\r\a' at the end of them. While this does not seem to be an issue for speech (presumably synths just ignore control characters), these characters were being output in braille.
Description of user facing changes
Extraneous output is no longer produced.
Description of development approach
Modified NVDAObjects.IAccessible.winword.WordDocument.fetchAssociatedHeaderCellText to drop '\r\a' if it was a suffix to any of the row or column headers' text.1 parent 74554eb commit 3f82ab6
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
| 234 | + | |
| 235 | + | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments