3737 [PSCustomObject]@{
3838 VersionRelativePath = 'foo.md'
3939 Versions = @(
40- @{ Version = '1.1'; ChangeType = 'N/A' }
41- @{ Version = '1.2'; ChangeType = 'unchanged' }
42- @{ Version = '1.3'; ChangeType = 'modified' }
40+ @{ Version = '1.1'; ChangeType = 'N/A' }
41+ @{ Version = '1.2'; ChangeType = 'unchanged' }
42+ @{ Version = '1.3'; ChangeType = 'modified' }
4343 )
4444 }
4545 [PSCustomObject]@{
5656 $Summary.ToString()
5757 ```
5858
59- ```output
59+ ```Output
6060 | Version-Relative Path | 1.1 | 1.2 | 1.3 |
6161 |:-----------------------------|:----------:|:----------:|:----------:|
6262 | `foo.md` | N/A | Unchanged | Modified |
7070 - The file `bar/baz.md` was added in all three versions.
7171
7272 The second command creates a new **StringBuilder** object to write the table to.
73-
73+
7474 The third command uses this cmdlet to write a versioned content summary table to `$Summary`.
7575 Because neither **RelativePathWidth** nor **VersionWidth** were passed to the cmdlet, it
76- calculates the required column withs dynamically.
77-
76+ calculates the required column widths dynamically.
77+
7878 The final command displays the string the third command has built.
7979#>
8080function Add-VersionedContentTable {
@@ -99,7 +99,7 @@ function Add-VersionedContentTable {
9999 }
100100 }
101101 process {
102- # region Column Widths
102+ # region Column Widths
103103 if (($RelativePathWidth -eq 0 ) -and ($VersionWidth -eq 0 )) {
104104 $RelativePathWidth , $VersionWidth = Get-VersionedContentTableColumnWidth @WidthParams
105105 } elseif ($RelativePathWidth -eq 0 ) {
@@ -109,8 +109,8 @@ function Add-VersionedContentTable {
109109 $WidthParams.Add (' Version' , $true )
110110 $VersionWidth = Get-VersionedContentTableColumnWidth @WidthParams
111111 }
112- # endregion ColumnWidths
113- # region Setup the table header
112+ # endregion Column Widths
113+ # region Setup the table header
114114 $null = $Summary.Append (" |$ ( ' Version-Relative Path' .PadRight($RelativePathWidth )) " )
115115 # Retrieve the list of unique versions
116116 $VersionList = $ChangeSet.Versions.Version | Select-Object - Unique
0 commit comments