Skip to content

Commit 81d4acb

Browse files
committed
Disable regex assert -> writeln rewrite logic (for now)
1 parent d488852 commit 81d4acb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

js/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ $(document).ready(function()
370370
+ '<textarea class="d_code_stdin">'+stdin+'</textarea></div>'
371371
+ '<div class="d_code_args"><span class="d_code_title">Command line arguments</span><br>'
372372
+ '<textarea class="d_code_args">'+args+'</textarea></div>'
373-
+ '<div class="d_code_output"><span class="d_code_title">Application output</span><br><textarea class="d_code_output" readonly>Running...</textarea></div>'
373+
+ '<div class="d_code_output"><span class="d_code_title">Application output</span><br><pre class="d_code_output" readonly>Running...</pre></div>'
374374
+ '<input type="button" class="editButton" value="Edit">'
375375
+ '<input type="button" class="argsButton" value="Args">'
376376
+ '<input type="button" class="inputButton" value="Input">'
@@ -456,7 +456,7 @@ function setupTextarea(el, opts)
456456

457457
var plainSourceCode = parent.parent().children("div.d_code");
458458

459-
var output = outputDiv.children("textarea.d_code_output");
459+
var output = outputDiv.children("pre.d_code_output");
460460
var outputTitle = outputDiv.children("span.d_code_title");
461461
if (opts.args) {
462462
var argsBtn = parent.children("input.argsButton");

js/run_examples.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ $(document).ready(function()
5959
var currentExample = $(this);
6060
var orig = currentExample.html();
6161

62-
orig = reformatExample(orig);
62+
// disable regex assert -> writeln rewrite logic (for now)
63+
//orig = reformatExample(orig);
6364

6465
// check whether it is from a ddoced unittest
6566
// 1) check is for ddoc, 2) for ddox

0 commit comments

Comments
 (0)