Thomas Bruederli
2012-10-04 ef7a786b38d36374585be6b5800ce1862b40eb50
Consider colspan attributes when adding table cells/rows
1 files modified
4 ■■■■ changed files
program/include/html.php 4 ●●●● patch | view | raw | blame | history
program/include/html.php
@@ -643,9 +643,9 @@
        $cell->content = $cont;
        $this->rows[$this->rowindex]->cells[$this->colindex] = $cell;
        $this->colindex++;
        $this->colindex += max(1, intval($attr['colspan']));
        if ($this->attrib['cols'] && $this->colindex == $this->attrib['cols']) {
        if ($this->attrib['cols'] && $this->colindex >= $this->attrib['cols']) {
            $this->add_row();
        }
    }