1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

💬 Adding trimming of line in format string

Before:
    ***** WARNING Old profile syntax detected for "                val debug = false", please update to "val debug by profile()"

    After:
    ***** WARNING Old profile syntax detected for "val debug = false", please update to "val debug by profile()
This commit is contained in:
Marcus Fihlon 2017-11-06 19:54:54 +01:00
parent 70f01fa691
commit f4f3827fd1
No known key found for this signature in database
GPG key ID: C6B7F469EE363E1F

View file

@ -56,7 +56,7 @@ class Profiles(val context: KobaltContext) {
val variable = if (match.first) match.second else oldMatch.second
if (oldMatch.first) {
warn("Old profile syntax detected for \"$line\"," +
warn("Old profile syntax detected for \"${line.trim()}\"," +
" please update to \"val $variable by profile()\"")
}