From: <xa...@us...> - 2011-02-04 17:37:01
|
Revision: 32436 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=32436&view=rev Author: xavidp Date: 2011-02-04 17:36:54 +0000 (Fri, 04 Feb 2011) Log Message: ----------- [ENH]Added id and name for the pre tags of the R output, so that its content can be easily passed to Jquery. Thanks jonnyb and luciash Modified Paths: -------------- mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php Modified: mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php =================================================================== --- mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php 2011-02-04 17:24:14 UTC (rev 32435) +++ mods/trunk/wiki-plugins/r/lib/wiki-plugins/wikiplugin_rr.php 2011-02-04 17:36:54 UTC (rev 32436) @@ -382,7 +382,7 @@ $fd = fopen ($rst, 'w') or error ('R', 'can not open file: ' . $rst, $input . $err); if ($r_exitcode == 0) { // Write the start tag of an html comment to comment out the tag to remove echo from R console. The closing html comment tag is added inside $cont after the "option(echo=FALSE)" - fwrite ($fd, $prg . '<pre style="'.$pre_style.'"><!-- ' . $cont . '</pre>'); + fwrite ($fd, $prg . '<pre id="routput" name="routput" style="'.$pre_style.'"><!-- ' . $cont . '</pre>'); if (file_exists($rgo)) { fwrite ($fd, $prg . '<img src="' . $rgo_rel . '" alt="' . $rgo_rel . '">'); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |