(table)
| 164 | } |
| 165 | |
| 166 | function transformTable(table) { |
| 167 | let str = '' |
| 168 | for (const id in table.rows) { |
| 169 | const cells = table.rows[id].cells |
| 170 | str += cells |
| 171 | .map(c => c.value) |
| 172 | .map(c => c.padEnd(15)) |
| 173 | .join(' | ') |
| 174 | str += '\n' |
| 175 | } |
| 176 | return str |
| 177 | } |
| 178 | function addExampleInTable(exampleSteps, placeholders) { |
| 179 | const steps = JSON.parse(JSON.stringify(exampleSteps)) |
| 180 | for (const placeholder in placeholders) { |