PoshCode / Configuration

A module to help other modules have settings
MIT License
176 stars 27 forks source link

Update-Metadata should not keep adding newlines to the psd1 #22

Closed EklipZgit closed 2 years ago

EklipZgit commented 5 years ago

Editing this again: Now that the -NoNewLine switch was removed from the Set-Content call in the Update-MetaData function, there is a new line added to the psd1 each time it is edited. My idea for a fix would be to just add a .Trim() on the value so that it only ends up with a single newline in all cases.