summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-24 15:29:22 +0200
committerandi <andi@splitbrain.org>2005-04-24 15:29:22 +0200
commit506ae684bcf1ce877f4b74e255056d17161e4cc0 (patch)
treed0db80e9ffe246fc871b8d642d4b88c8a7eee427 /inc/parser/parser.php
parentc27ff579c062b3489dae397eb8654e4628d3b2cc (diff)
downloadrpg-506ae684bcf1ce877f4b74e255056d17161e4cc0.tar.gz
rpg-506ae684bcf1ce877f4b74e255056d17161e4cc0.tar.bz2
finally valid XHTML again
darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz
Diffstat (limited to 'inc/parser/parser.php')
-rw-r--r--inc/parser/parser.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php
index 23f2c13d7..d66ed5cca 100644
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -165,10 +165,11 @@ class Doku_Parser_Mode_Footnote extends Doku_Parser_Mode {
class Doku_Parser_Mode_Header extends Doku_Parser_Mode {
function preConnect() {
+ //we're not picky about the closing ones, two are enough
// Header 1 is special case - match 6 or more
$this->Lexer->addSpecialPattern(
- '[ \t]*={6,}[^\n]+={6,}[ \t]*\n',
+ '[ \t]*={6,}[^\n]+={2,}[ \t]*\n',
'base',
'header'
);
@@ -176,7 +177,7 @@ class Doku_Parser_Mode_Header extends Doku_Parser_Mode {
// For the rest, match exactly
for ( $i = 5; $i > 1; $i--) {
$this->Lexer->addSpecialPattern(
- '[ \t]*={'.$i.'}[^\n]+={'.$i.'}[ \t]*\n',
+ '[ \t]*={'.$i.'}[^\n]+={2,}[ \t]*\n',
'base',
'header'
);