Permalink
Browse files

CSV形式の表組みを中央揃えに変更

  • Loading branch information...
1 parent eaaff51 commit dde74c8862b5a6831992bc354a0f767c0004bd40 @mikoim mikoim committed May 9, 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 dde74c8

Please sign in to comment.