summaryrefslogtreecommitdiff
path: root/inc/parser/parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/parser.php')
-rw-r--r--inc/parser/parser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php
index ba62af21e..77909a436 100644
--- a/inc/parser/parser.php
+++ b/inc/parser/parser.php
@@ -276,7 +276,8 @@ class Doku_Parser_Mode_eol extends Doku_Parser_Mode {
if ( in_array($mode, $badModes) ) {
return;
}
- $this->Lexer->addSpecialPattern('\n',$mode,'eol');
+ // see FS#1652, pattern extended to swallow preceding whitespace to avoid issues with lines that only contain whitespace
+ $this->Lexer->addSpecialPattern('(?:^[ \t]*)?\n',$mode,'eol');
}
function getSort() {