File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 386
386
RELATIVE_LINK2=$(ALOCAL $1, $+)
387
387
_=
388
388
389
- RUNNABLE_EXAMPLE=$(DIVC runnable-examples, $1)
389
+ RUNNABLE_EXAMPLE=<div class="runnable-examples">
390
+ $1
391
+ </div>
390
392
RUNNABLE_EXAMPLE_STDIN=<code class="runnable-examples-stdin">$0</code>
391
393
RUNNABLE_EXAMPLE_ARGS=<code class="runnable-examples-args">$0</code>
392
394
Original file line number Diff line number Diff line change @@ -282,18 +282,13 @@ function setupTextarea(el, opts)
282
282
283
283
var prepareForMain = function ( )
284
284
{
285
- var src = $ . browser . msie && $ . browser . version < 9.0 ? orgSrc [ 0 ] . innerText : orgSrc . text ( ) ;
285
+ var src = orgSrc . text ( ) ;
286
286
var arr = src . split ( "\n" ) ;
287
287
var str = "" ;
288
- for ( i = 0 ; i < arr . length ; i ++ )
288
+ for ( var i = 0 ; i < arr . length ; i ++ )
289
289
{
290
290
str += arr [ i ] + "\n" ;
291
291
}
292
- if ( $ . browser . msie && $ . browser . version < 9.0 )
293
- str = str . substr ( 0 , str . length - 1 ) ;
294
- else
295
- str = str . substr ( 0 , str . length - 2 ) ;
296
-
297
292
return str ;
298
293
} ;
299
294
You can’t perform that action at this time.
0 commit comments