Skip to content

Commit

Permalink
Merge pull request #32 from ChadSimmons/patch-1
Browse files Browse the repository at this point in the history
Resolve special character issues in output file name
  • Loading branch information
ThomasKur authored Jul 20, 2023
2 parents 071351d + 52e23f6 commit 9522a84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Function Write-DocumentationCsvSection(){

if($Data.Objects){
$Path = $Path.Split([IO.Path]::GetInvalidFileNameChars()) -join ''
$Data.Objects | ConvertTo-Csv -NoTypeInformation -Delimiter ";" | Out-File -FilePath "$CsvPath\$Path.csv"
$Data.Objects | ConvertTo-Csv -NoTypeInformation -Delimiter ";" | Out-File -LiteralPath "$CsvPath\$Path.csv"
}
foreach($Section in $Data.SubSections){
Write-DocumentationCsvSection -CsvPath $CsvPath -Data $Section -Path "$Path-$($Section.Title)"
}
}
}
}

0 comments on commit 9522a84

Please sign in to comment.