Skip to content

Commit 109ca9e

Browse files
committed
fix(banner): render art padding conditionally
`artPaddingBottom` should only be rendered if art is displayed.
1 parent 28fb382 commit 109ca9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grails-core/src/main/groovy/grails/boot/GrailsBanner.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class GrailsBanner implements Banner {
6565
def art = createBannerArt(environment)
6666
bannerWidth = longestLineLength(art) ?: FALLBACK_BANNER_WIDTH
6767
out.println(art)
68+
artPaddingBottom.times { out.println() }
6869
}
69-
artPaddingBottom.times { out.println() }
7070
if (shouldDisplayVersions(environment)) {
7171
createVersionsFormatter().format(createBannerVersions(environment), bannerWidth)
7272
.forEach { out.println(it) }

0 commit comments

Comments
 (0)