2008-11-29
ashorlivs
I noticed linebreaks are sometimes missing when copy/paste texts.
I had to force linebreaks using syntax \\ .
In /inc/parser/parser.php, I changed:
class Doku_Parser_Mode_linebreak extends Doku_Parser_Mode {
function connectTo($mode) {
$this->Lexer->addSpecialPattern('\x5C{2}(?=\s)',$mode,'linebreak');
}
function getSort() {
return 140;
}
}
To:
class Doku_Parser_Mode_linebreak extends Doku_Parser_Mode {
function connectTo($mode) {
$this->Lexer->addSpecialPattern('\x5C{2}(?=\s)',$mode,'linebreak');
$this->Lexer->addSpecialPattern("\n",$mode,'linebreak');
}
function getSort() {
return 140;
}
}
And it fixed the problem.