File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,13 @@ function Extract-HTMLTable {
41
41
}
42
42
43
43
# # Go through all of the rows in the table
44
+ $tableNumber = 0
44
45
foreach ($table in $tables ) {
45
46
$titles = @ ()
46
47
$rows = @ ($table.Rows )
47
48
49
+ $tableNumber ++
50
+
48
51
foreach ($row in $rows ) {
49
52
$cells = @ ($row.Cells )
50
53
@@ -62,11 +65,13 @@ function Extract-HTMLTable {
62
65
# # Now go through the cells in the the row. For each, try to find the
63
66
# # title that represents that column and create a hashtable mapping those
64
67
# # titles to content
65
- $resultObject = [Ordered ] @ {}
68
+ $resultObject = [Ordered ] @ {
69
+ " TableNumber" = $tableNumber
70
+ }
71
+
66
72
for ($counter = 0 ; $counter -lt $cells.Count ; $counter ++ ) {
67
73
$title = $titles [$counter ]
68
74
if (-not $title ) { continue }
69
-
70
75
$resultObject [$title ] = (' ' + $cells [$counter ].InnerText).Trim()
71
76
}
72
77
You can’t perform that action at this time.
0 commit comments