Fix bug#1014 markdown编辑器中的表格显示不正确

This commit is contained in:
wangyidong
2017-04-21 14:13:18 +08:00
parent 0175551046
commit a7adfdc10c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ class hyperdown
break;
// table
case preg_match("/^((?:(?:(?:[ :]*\-[ :]*)+(?:\||\+))|(?:(?:\||\+)(?:[ :]*\-[ :]*)+)|(?:(?:[ :]*\-[ :]*)+(?:\||\+)(?:[ :]*\-[ :]*)+))+)\s*$/", $line, $matches):
case preg_match("/^ *((?:(?:(?:[ :]*\-[ :]*)+(?:\||\+))|(?:(?:\||\+)(?:[ :]*\-[ :]*)+)|(?:(?:[ :]*\-[ :]*)+(?:\||\+)(?:[ :]*\-[ :]*)+))+)\s*$/", $line, $matches):
if ($this->isBlock('table')) {
$block[3][0][] = $block[3][2];
$block[3][2] ++;
+1
View File
@@ -129,6 +129,7 @@ class svn extends control
}
$objects = $this->svn->parseComment($message);
file_put_contents('/tmp/log.txt', json_encode($objects));
if($objects)
{
$log = new stdclass();