From 506ae684bcf1ce877f4b74e255056d17161e4cc0 Mon Sep 17 00:00:00 2001 From: andi Date: Sun, 24 Apr 2005 15:29:22 +0200 Subject: finally valid XHTML again darcs-hash:20050424132922-9977f-5e9acbeae431ca1c605169829e580bf094a09ef9.gz --- inc/parser/parser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc/parser/parser.php') 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' ); -- cgit v1.2.3