GeoView : replace problem when some place fields are empty.
svn: r14375
This commit is contained in:
parent
f843839c6b
commit
0c6fc43aa7
@ -268,8 +268,11 @@ def _escape(text):
|
||||
"""
|
||||
return the text with some characters translated : " &
|
||||
"""
|
||||
text = text.replace('&','\\&')
|
||||
text = text.replace('"','\\"')
|
||||
try:
|
||||
text = text.replace('&','\\&')
|
||||
text = text.replace('"','\\"')
|
||||
except: # pylint: disable-msg=W0704
|
||||
pass # pylint: disable-msg=W0702
|
||||
return text
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user