diff options
Diffstat (limited to 'src/plugins/cpptools/cppfilesettingspage.cpp')
-rw-r--r-- | src/plugins/cpptools/cppfilesettingspage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppfilesettingspage.cpp b/src/plugins/cpptools/cppfilesettingspage.cpp index 960de9f597..f0af6904cc 100644 --- a/src/plugins/cpptools/cppfilesettingspage.cpp +++ b/src/plugins/cpptools/cppfilesettingspage.cpp @@ -248,11 +248,12 @@ QString CppFileSettings::licenseTemplate(const QString &fileName, const QString QString license = licenseStream.readAll(); parseLicenseTemplatePlaceholders(&license, fileName, className); - // Ensure exactly one additional new line separating stuff + + // Ensure at least one newline at the end of the license template to separate it from the code const QChar newLine = QLatin1Char('\n'); if (!license.endsWith(newLine)) license += newLine; - license += newLine; + return license; } |