Re: svn: /phd/trunk/phpdotnet/phd/Package/ Generic/ChunkedXHTML.php Generic/XHTML.php IDE/Base.php IDE/XML.php
| From: | Hannes Magnusson | Date: | Tue, 05 Jul 2011 19:27:14 +0000 |
| Subject: | Re: svn: /phd/trunk/phpdotnet/phd/Package/ Generic/ChunkedXHTML.php Generic/XHTML.php IDE/Base.php IDE/XML.php | ||
| References: | 1 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-8423@lists.php.net to get a copy of this message | ||
2011/7/3 Moacir de Oliveira Miranda Júnior <moacir@php.net>:
> moacir Sat, 02 Jul 2011 23:25:55 +0000
>
> Revision: http://svn.php.net/viewvc?view=revision&revision=312826
>
>
> Log:
> Rendering all descriptions as html
> * Maybe we should make this optional, render as text or html
> * CDATA is used in the XML format
> * Now is possible to render all IDE formats at once \o/
>
> Changed paths:
> U phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php
> U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
> U phd/trunk/phpdotnet/phd/Package/IDE/Base.php
> U phd/trunk/phpdotnet/phd/Package/IDE/XML.php
>
> Modified: phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php
> ===================================================================
> --- phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php 2011-07-02 23:17:37 UTC (rev
> 312825)
> +++ phd/trunk/phpdotnet/phd/Package/Generic/ChunkedXHTML.php 2011-07-02 23:25:55 UTC (rev
> 312826)
> @@ -67,6 +67,10 @@
> break;
>
> case Render::INIT:
> + if ($this->appendToBuffer) {
> + return; //Don't create output dir when rendering to buffer
> + }
> +
> $this->setOutputDir(Config::output_dir() .
> strtolower($this->getFormatName()) . '/');
> $this->postConstruct();
> if (file_exists($this->getOutputDir())) {
>
> Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
> ===================================================================
> --- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2011-07-02 23:17:37 UTC (rev 312825)
> +++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2011-07-02 23:25:55 UTC (rev 312826)
> @@ -1322,7 +1322,8 @@
> return "";
> }
> if ($open) {
> - return "<p><b>" .
> ($this->autogen('example', $props['lang']) .
> ++$this->cchunk["examples"]) . " ";
> + return "<p><b>" .
> ($this->autogen('example', $props['lang'])
> + . (isset($this->cchunk["examples"]) ?
> ++$this->cchunk["examples"] : "")) . " ";
> }
>
Why would it not be set? It should be part of the dchunk..
-Hannes