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

More checks for Qt TS

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 7ebc08db
...@@ -82,7 +82,9 @@ class FileUnit(object): ...@@ -82,7 +82,9 @@ class FileUnit(object):
result = ', '.join(self.mainunit.getlocations()) result = ', '.join(self.mainunit.getlocations())
# Do not try to handle relative locations in Qt TS, see # Do not try to handle relative locations in Qt TS, see
# http://qt-project.org/doc/qt-4.8/linguist-ts-file-format.html # http://qt-project.org/doc/qt-4.8/linguist-ts-file-format.html
if ':+' in result or ':-' in result: if (':+' in result or ':-' in result
' +' in result or ' -' in result
or results.startswith('+') or results.startswith('-')):
return '' return ''
return result return result
......
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