• R/O
  • SSH
  • HTTPS

y2pukiwiki: Commit


Commit MetaInfo

Revision112 (tree)
Time2010-04-05 16:14:26
Authory2katayama

Log Message

tablesorterに対応

Change Summary

Incremental Difference

--- pukiwiki-1.4.7_notb_utf8/plugin/google_spsheet.inc.php (revision 111)
+++ pukiwiki-1.4.7_notb_utf8/plugin/google_spsheet.inc.php (revision 112)
@@ -117,7 +117,11 @@
117117 for($i=0; $i<count($this->table); $i++){
118118 $n = $this->cols - count($this->table[$i]);
119119 $row = array_map(create_function('$cell','return preg_replace(array(\'/\\|/\',\'/NULL/\'),array(\'&#124;\',\'\'),$cell);'),$this->table[$i]);
120- $pw_source .= '|' . implode('|', $row) . str_repeat('|',$n) . '|' . ($i == 0 ? 'h' : '') . "\n";
120+ if($i == 0) {
121+ $pw_source .= '|~' . implode('|~', $row) . str_repeat('|',$n) ."|h\n";
122+ } else {
123+ $pw_source .= '|' . implode('|', $row) . str_repeat('|',$n) ."|\n";
124+ }
121125 }
122126
123127 return $pw_source;
Show on old repository browser