Permalink
Browse files

Merge pull request #47 from mikoim/feature/table

CSV形式の表組みを中央揃えに変更
  • Loading branch information...
2 parents 2a5080b + dde74c8 commit 22d70af92988b8194fdd9c5f9e964e14bc8b45cc @logue committed May 10, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 wiki-common/lib/PukiWiki/Renderer/Element/YTable.php
@@ -25,8 +25,8 @@
class YTable extends Element
{
protected $col; // Number of columns
-
- public $align;
+
+ public $align = 'center';
// TODO: Seems unable to show literal '==' without tricks.
// But it will be imcompatible.
@@ -94,7 +94,7 @@ public function toString()
foreach ($this->elements as $str) {
$rows .= "\n" . '<tr>' . $str . '</tr>' . "\n";
}
- $rows = $this->wrap($rows, 'table', ' class="table ' . $this->align . '" data-pagenate="false"');
+ $rows = $this->wrap($rows, 'table', ' class="table table-bordered table_' . $this->align . '" data-pagenate="false"');
return $this->wrap($rows, 'div', ' class="table_wrapper"');
}
}

0 comments on commit 22d70af

Please sign in to comment.