PowerShellGetv2 icon indicating copy to clipboard operation
PowerShellGetv2 copied to clipboard

Mlonis fix for issue 165

Open mrlonis opened this issue 6 years ago • 1 comments

Description

This pull request resolves issue #165 .

Changelog

Get-PSScriptInfoString.ps1

  1. Removed the trailing whitespace on line 90.
  2. 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

  1. 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

  1. Modified line 399 to no longer add a character return newline sequence when the $requiresString is the empty string.
  2. 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.
  3. Modified line 444 to remove the trailing whitespace after the word DESCRIPTION in the script info.

mrlonis avatar Dec 05 '19 00:12 mrlonis

CLA assistant check
All CLA requirements met.

msftclas avatar Dec 05 '19 00:12 msftclas