summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-12-01 17:57:03 +0000
committerChristopher Smith <chris@jalakai.co.uk>2013-12-01 17:57:03 +0000
commit5a41afe6e3b958291893a0a10105cd41971fb141 (patch)
tree734b94bd2570187c46c5159f3bf2c9cc598a2855 /inc/parser
parent89c9e0571b68a2608fd8426a34204e42fc77e6b3 (diff)
downloadrpg-5a41afe6e3b958291893a0a10105cd41971fb141.tar.gz
rpg-5a41afe6e3b958291893a0a10105cd41971fb141.tar.bz2
FS#1833 (b)
Prevent table entry syntax swallowing multiple preceeding blank lines (a) this shouldn't be necessary, blank lines are handled by paragraph processing (b) avoids issues with greedy table syntax competing with plugins
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php
index e39a4daf5..1f14b98a3 100644
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -454,8 +454,8 @@ class Doku_Parser_Mode_table extends Doku_Parser_Mode {
}
function connectTo($mode) {
- $this->Lexer->addEntryPattern('\s*\n\^',$mode,'table');
- $this->Lexer->addEntryPattern('\s*\n\|',$mode,'table');
+ $this->Lexer->addEntryPattern('[\t ]*\n\^',$mode,'table');
+ $this->Lexer->addEntryPattern('[\t ]*\n\|',$mode,'table');
}
function postConnect() {