PowerShellGetv2
PowerShellGetv2 copied to clipboard
Mlonis fix for issue 165
Description
This pull request resolves issue #165 .
Changelog
Get-PSScriptInfoString.ps1
- Removed the trailing whitespace on line 90.
- Refactored lines 96-97 as a singular line of code. This change functions just like the code before but, when $ReleaseNotes is the empty string, it will no longer add an extra newline when the release notes section is being left empty.
Get-ScriptCommentHelpInfoString.ps1
- Modified line 50, 54, 62, 72, 82, 89, 97, 104, 109, 114, & 117 to remove the trailing whitespaces when creating the comment help info string.
Update-ScriptFileInfo.ps1
- Modified line 399 to no longer add a character return newline sequence when the $requiresString is the empty string.
- Modified line 405 to no longer add a character return newline sequence when a script already has Requires -Module statements but the update function is not looking to add any new Requires -Module statements.
- Modified line 444 to remove the trailing whitespace after the word DESCRIPTION in the script info.