Navigation Menu

Skip to content

Commit

Permalink
do not use DOKU_PARSER_EOL outside of testing
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed May 7, 2018
1 parent d4d8fb1 commit 23f4cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/Parsing/Handler/Block.php
Expand Up @@ -109,7 +109,7 @@ protected function closeParagraph($pos)
} else {
// remove ending linebreaks in the paragraph
$i=count($this->calls)-1;
if ($this->calls[$i][0] == 'cdata') $this->calls[$i][1][0] = rtrim($this->calls[$i][1][0], DOKU_PARSER_EOL);
if ($this->calls[$i][0] == 'cdata') $this->calls[$i][1][0] = rtrim($this->calls[$i][1][0], "\n");
$this->calls[] = array('p_close',array(), $pos);
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public function process($calls)
$this->openParagraph($call[2]);
} else {
//if this is just a single eol make a space from it
$this->addCall(array('cdata',array(DOKU_PARSER_EOL), $call[2]));
$this->addCall(array('cdata',array("\n"), $call[2]));
}
}
continue;
Expand Down

0 comments on commit 23f4cc4

Please sign in to comment.