Skip to content

Commit fc78f52

Browse files
authored
Merge pull request #144 from ZAG-Personal-Perspektiven/TablesWithEmptyCells
fix for tables with empty cells
2 parents 92e0d1f + 9951016 commit fc78f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ConfluencePS/Public/ConvertTo-Table.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function ConvertTo-Table {
3838
}
3939
$_.PSObject.Properties |
4040
ForEach-Object -Begin {$Row = ""} `
41-
-Process {$Row += "|$($_.Value)"} `
41+
-Process {if ($($_.value)) {$Row += "|$($_.Value)"} else {$Row += "| "}} `
4242
-End {$Row += "|"}
4343
$RowArray.Add($Row) | Out-Null
4444
}

0 commit comments

Comments
 (0)