Commit fae707d15516194b737fbe8f791b6072027f9845
1 parent
48bba66d
removed unncessary newlines
Showing
2 changed files
with
3 additions
and
3 deletions
sdk/core/qtutils.cpp
| ... | ... | @@ -92,7 +92,7 @@ void QtUtils::readFile(const QString &file, QByteArray &data, bool uncompress) |
| 92 | 92 | |
| 93 | 93 | void QtUtils::writeFile(const QString &file, const QStringList &lines) |
| 94 | 94 | { |
| 95 | - writeFile(file, lines.join("\n") + "\n"); | |
| 95 | + writeFile(file, lines.join("\n")); | |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | void QtUtils::writeFile(const QString &file, const QString &data) |
| ... | ... | @@ -105,7 +105,7 @@ void QtUtils::writeFile(const QString &file, const QByteArray &data, int compres |
| 105 | 105 | const QString baseName = QFileInfo(file).baseName(); |
| 106 | 106 | const QByteArray contents = (compression == 0) ? data : qCompress(data, compression); |
| 107 | 107 | if (baseName == "terminal") { |
| 108 | - printf("%s", qPrintable(contents)); | |
| 108 | + printf("%s\n", qPrintable(contents)); | |
| 109 | 109 | } else if (baseName == "buffer") { |
| 110 | 110 | Globals->buffer = data; |
| 111 | 111 | } else { | ... | ... |