GeoView : replace problem when some place fields are empty.

svn: r14375
This commit is contained in:
Serge Noiraud 2010-02-14 21:23:50 +00:00
parent f843839c6b
commit 0c6fc43aa7

View File

@ -268,8 +268,11 @@ def _escape(text):
""" """
return the text with some characters translated : " & return the text with some characters translated : " &
""" """
text = text.replace('&','\\&') try:
text = text.replace('"','\\"') text = text.replace('&','\\&')
text = text.replace('"','\\"')
except: # pylint: disable-msg=W0704
pass # pylint: disable-msg=W0702
return text return text
#------------------------------------------------------------------------- #-------------------------------------------------------------------------