1 |
Modified: src/trunk/translate/lang/es.py |
2 |
=================================================================== |
3 |
--- src/trunk/translate/lang/es.py 2010-02-26 06:30:13 UTC (rev 13851) |
4 |
+++ src/trunk/translate/lang/es.py 2010-02-26 06:31:59 UTC (rev 13852) |
5 |
@@ -43,6 +43,9 @@ |
6 |
first = firstmatch.group() |
7 |
# remove trailing whitespace |
8 |
first = first.strip() |
9 |
+ # protect against incorrectly handling an empty string |
10 |
+ if not first: |
11 |
+ return text |
12 |
if first[-1] == '?': |
13 |
text = u"¿" + text |
14 |
elif first[-1] == '!': |