Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paragraph breaks are not honored correctly #7

Open
phallobst opened this issue Oct 3, 2012 · 1 comment
Open

Paragraph breaks are not honored correctly #7

phallobst opened this issue Oct 3, 2012 · 1 comment

Comments

@phallobst
Copy link

With the new DokuWiki "Adora Belle" (RC1) and the latest plugin release (2009-02-06) I have the following surprising behavior:

Line 1

/* Comment A */
Line 2

/*
 * Comment B
 */
Line 3

renders as

Line 1 Line 2 Line 3

whereas

Line 1
/* Comment A */

Line 2
/*
 * Comment B
 */

Line 3

yields

Line 1

Line 2

Line 3

The empty lines should always be preserved, resulting in a paragraph break for all cases.

@phallobst
Copy link
Author

After I replaced the original connectTo function in syntax.php with the following

function connectTo($mode) {
  $this->Lexer->addEntryPattern('/\*',$mode,'plugin_comment');
}
function postConnect() {
  $this->Lexer->addExitPattern('\*/','plugin_comment');
}

everything rendered as expected. I must admit that I have no idea if that causes other problems...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant