diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-03 16:05:47 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-03 16:16:48 (GMT) |
commit | 068177288001c46896d6b04c520731adb56ed288 (patch) | |
tree | f5588086116c8fa1d3d16bdefc544c6ad4fa5c49 /tools/linguist/shared/translator.h | |
parent | 482159bddec1736a8854dc2db1b75cf856d00255 (diff) | |
download | Qt-068177288001c46896d6b04c520731adb56ed288.zip Qt-068177288001c46896d6b04c520731adb56ed288.tar.gz Qt-068177288001c46896d6b04c520731adb56ed288.tar.bz2 |
remove spurious empty lines in the linguist tools' output
ConversionData::error() does already newline-terminate the strings.
Diffstat (limited to 'tools/linguist/shared/translator.h')
-rw-r--r-- | tools/linguist/shared/translator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/shared/translator.h b/tools/linguist/shared/translator.h index bb199f0..cfb2178 100644 --- a/tools/linguist/shared/translator.h +++ b/tools/linguist/shared/translator.h @@ -92,7 +92,7 @@ public: bool sortContexts() const { return m_sortContexts; } void appendError(const QString &error) { m_errors.append(error); } - QString error() const { return m_errors.join(QLatin1String("\n")); } + QString error() const { return m_errors.isEmpty() ? QString() : m_errors.join(QLatin1String("\n")) + QLatin1Char('\n'); } QStringList errors() const { return m_errors; } void clearErrors() { m_errors.clear(); } |