diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-07-14 17:46:14 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-07-14 17:46:14 +0200 |
commit | 9edb131f425e23ea9e9645fee441975959cfd02b (patch) | |
tree | da694e19d5c4a46f96b8b7df88a4a10c559ce6fb /l10ntools | |
parent | 2c40a12f3307ac3a72f6036a9a2f8939fd7b77c8 (diff) |
txtl10n: #i113008# #i113125# skip on empty string
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/scripts/tool/xtxex.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/l10ntools/scripts/tool/xtxex.py b/l10ntools/scripts/tool/xtxex.py index 317fb5cc7ff0..2c5f132530a6 100644 --- a/l10ntools/scripts/tool/xtxex.py +++ b/l10ntools/scripts/tool/xtxex.py @@ -76,10 +76,14 @@ class Xtxex(AbstractL10nTool): # escape all returns lines = [line.replace('\n', "\\n") for line in lines] line = ''.join(lines) - sdf_entity = self.prepare_sdf_line(inputfile); - sdf_entity.text = line - return str(sdf_entity) - + test = str(line) + if len(test.strip()): + sdf_entity = self.prepare_sdf_line(inputfile); + sdf_entity.text = line + return str(sdf_entity) + else: + return "" + def prepare_sdf_line(self, inputfile="", lang=""): if lang == "": lang = self._source_language |