1 parent 6e61ffe commit 00aecf2Copy full SHA for 00aecf2
1 file changed
plaster/ModuleBuild/scaffold/modulename.build.template
@@ -9,9 +9,9 @@
9
[switch]$Force
10
)
11
12
-# Basic indented descriptive build output.
13
Function Write-Description {
14
- param (
+ # Basic indented descriptive build output. $Description can contain Newlines.
+ Param (
15
[string]$color = 'White',
16
[string]$Description = '',
17
[int]$Level = 0,
@@ -22,11 +22,12 @@ Function Write-Description {
22
23
24
$thisindent = (' ' * $indent) * $level
25
- if ($accent) {
+ If ($accent) {
26
$accentleft = $AccentL
27
$accentright = $AccentR
28
}
29
- Write-Build $color "$accentleft$thisindent$Description$accentright"
+
30
+ $Description -split '\r\n|\n' | ForEach-Object { Write-Build $color "$accentleft$thisindent$($_)$accentright" }
31
32
33
if (Test-Path $BuildFile) {
0 commit comments