Source for file Table.php
Documentation is available at Table.php
class Text_Wiki_Render_Latex_Table extends Text_Wiki_Render {
var $is_spanning = false;
* Renders a token into text matching the requested format.
* @param array $options The "options" portion of the token (second
* @return string The text rendered from the token options.
// make nice variable names (type, attr, span)
$this->cell_count = $cols;
$tbl_start = '\begin{tabular}{|';
for ($a=0; $a < $this->cell_count; $a++ ) {
return "\\hline\n\\end{tabular}\n";
$this->is_spanning = false;
if ($this->cell_id == 0 ) {
$this->is_spanning = true;
return " \\multicolumn\{$span}\{$col_spec}{";
if ($this->is_spanning) {
$this->is_spanning = false;
if ($this->cell_id != $this->cell_count) {
Documentation generated on Mon, 11 Mar 2019 14:22:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|