We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
use
1 parent 1024346 commit 8ca832eCopy full SHA for 8ca832e
lib/runner.php
@@ -155,7 +155,7 @@ function fix_newlines( $text ) {
155
// Replace newline characters within 'code' and 'pre' tags with replacement string.
156
$text = preg_replace_callback(
157
"/(?<=<pre><code>)(.+)(?=<\/code><\/pre>)/s",
158
- function ( $matches ) {
+ function ( $matches ) use ( $replacement_string ) {
159
return preg_replace( '/[\n\r]/', $replacement_string, $matches[1] );
160
},
161
$text
0 commit comments