Searched refs:cols (Results 1 – 1 of 1) sorted by relevance
| /dokuwiki/inc/Parsing/Handler/ |
| H A D | GfmTable.php | 65 $cols = count($alignments); 68 if (count($rows[0]) !== $cols) { 75 … fn($row) => $this->unescapePipes($this->trimCellEdges($this->padOrTruncate($row, $cols))), 79 $out = $this->buildOutput($headerRow, $bodyRows, $alignments, $cols, $startPos, $endPos); 198 * @param int $cols the target column count derived from the delimiter row 201 protected function padOrTruncate(array $row, int $cols): array argument 204 if ($count < $cols) { 205 return array_pad($row, $cols, []); 207 if ($count > $cols) { 208 return array_slice($row, 0, $cols); [all …]
|