Commit e47aaa13 authored by Michal Čihař's avatar Michal Čihař

Do not add empty location to export

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ae449a7b
......@@ -82,7 +82,8 @@ class BaseExporter(object):
output.target = multistring(unit.target)
output.context = unit.context
for location in unit.location.split():
output.addlocation(location)
if location:
output.addlocation(location)
output.addnote(unit.comment)
if hasattr(output, 'settypecomment'):
for flag in unit.flags.split(','):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment