Skip to content

Conversation

@micgro42
Copy link
Contributor

No description provided.

@micgro42 micgro42 requested a review from splitbrain January 18, 2018 15:53
@micgro42
Copy link
Contributor Author

Testfailure is unrelated to this pull request.

public function renderValue($value, \Doku_Renderer $R, $mode) {
$R->cdata($this->config['prefix'] . $value . $this->config['postfix']);
if ($mode === 'xhtml') {
$valueWithBR = str_replace("\n", '<br>', hsc($value));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a nl2br() built into PHP ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@micgro42 micgro42 merged commit 4cc3c53 into master Jan 18, 2018
@micgro42 micgro42 deleted the newLineToBrLongText branch January 18, 2018 16:03
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

Successfully merging this pull request may close these issues.

3 participants