Thomas Bruederli
2012-10-04 ae44bf4dc76dcc686907d99c8ff208bf952b9ff6
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
@@ -681,9 +681,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();
        }
    }