OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c424a
)
LiveText: When calculating new text, don't barf on empty lines.
author
James Teh
<jamie@jantrid.net>
Tue, 9 Nov 2010 23:04:52 +0000
(09:04 +1000)
committer
James Teh
<jamie@jantrid.net>
Tue, 9 Nov 2010 23:04:52 +0000
(09:04 +1000)
source/NVDAObjects/behaviors.py
patch
|
blob
|
history
diff --git
a/source/NVDAObjects/behaviors.py
b/source/NVDAObjects/behaviors.py
index
6ea2a3f
..
784c78a
100755
(executable)
--- a/
source/NVDAObjects/behaviors.py
+++ b/
source/NVDAObjects/behaviors.py
@@
-233,11
+233,11
@@
class LiveText(NVDAObject):
prevLine = line
\r
continue
\r
text = line[2:]
\r
- if text.isspace():
\r
+ if
not text or
text.isspace():
\r
prevLine = line
\r
continue
\r
\r
- if prevLine and prevLine[0] == "-":
\r
+ if prevLine and prevLine[0] == "-"
and len(prevLine) > 2
:
\r
# It's possible that only a few characters have changed in this line.
\r
# If so, we want to speak just the changed section, rather than the entire line.
\r
prevText = prevLine[2:]
\r