cvs: pear /Text_Wiki/doc test_Text_Wiki.php

From: Date: Tue, 24 Jan 2006 19:08:33 +0000
Subject: cvs: pear /Text_Wiki/doc test_Text_Wiki.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-37740@lists.php.net to get a copy of this message
toggg Tue Jan 24 19:08:33 2006 UTC Modified files: /pear/Text_Wiki/doc test_Text_Wiki.php Log: Added Ooo , Pdf and Docbook in renderers to be tested, would be better to have free input. http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/doc/test_Text_Wiki.php?r1=1.7&r2=1.8&diff_format=u Index: pear/Text_Wiki/doc/test_Text_Wiki.php diff -u pear/Text_Wiki/doc/test_Text_Wiki.php:1.7 pear/Text_Wiki/doc/test_Text_Wiki.php:1.8 --- pear/Text_Wiki/doc/test_Text_Wiki.php:1.7 Wed Dec 7 08:45:25 2005 +++ pear/Text_Wiki/doc/test_Text_Wiki.php Tue Jan 24 19:08:33 2006 @@ -1,11 +1,11 @@ <?php /** * Eventually set an include path if all parsers/renderers not installed - * $Id: test_Text_Wiki.php,v 1.7 2005/12/07 08:45:25 toggg Exp $ + * $Id: test_Text_Wiki.php,v 1.8 2006/01/24 19:08:33 toggg Exp $ */ $parser = $render = $source = ''; $plist = array('Default', 'BBCode', 'Cowiki', 'Doku', 'Mediawiki', 'Tiki'); -$rlist = array('Xhtml', 'Plain', 'Latex', 'Cowiki', 'Doku', 'Tiki'); +$rlist = array('Xhtml', 'Plain', 'Latex', 'Cowiki', 'Doku', 'Tiki', 'Ooo', 'Pdf', 'Docbook'); /** * Here we need to know if we are running from command line or from web @@ -90,7 +90,7 @@ $optparser = bldOpt('parser', $plist); $optrender = bldOpt('render', $rlist); $optexample = bldOpt('exchoice', $elist); - $hresult = nl2br(htmlentities($result)); + $hresult = PEAR::isError($result) ? '' : nl2br(htmlentities($result)); if ($_REQUEST['render'] != 'Xhtml') { $result = ''; } @@ -123,14 +123,14 @@ <SELECT name="parser">{$optparser}</SELECT> to <SELECT name="render">{$optrender}</SELECT> - <INPUT type="submit" name="translate" value="translate"> + <INPUT type="submit" name="translate" value="translate" /> <br /> <textarea name="source" cols="60" rows="25">{$_REQUEST['source']}</textarea> <br /> <h4> Or choose <SELECT name="exchoice">{$optexample}</SELECT> and -<INPUT type="submit" name="example" value="Load example"> +<INPUT type="submit" name="example" value="Load example" /> </h4> </FORM> </div>

« previous php.pear.cvs (#37740) next »