cvs: phd(PHD_0_4) /formats xhtml.php

From: Date: Thu, 01 Jan 2009 22:53:26 +0000
Subject: cvs: phd(PHD_0_4) /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2907@lists.php.net to get a copy of this message
bjori Thu Jan 1 22:53:26 2009 UTC Modified files: (Branch: PHD_0_4) /phd/formats xhtml.php Log: More validation fixes http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.10&r2=1.67.2.2.2.11&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.67.2.2.2.10 phd/formats/xhtml.php:1.67.2.2.2.11 --- phd/formats/xhtml.php:1.67.2.2.2.10 Thu Jan 1 22:35:41 2009 +++ phd/formats/xhtml.php Thu Jan 1 22:53:26 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.67.2.2.2.10 2009/01/01 22:35:41 bjori Exp $ */ +/* $Id: xhtml.php,v 1.67.2.2.2.11 2009/01/01 22:53:26 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -1107,8 +1107,11 @@ } public function format_example_content($open, $name, $attrs) { if ($open) { - return $this->escapePara() . '<div class="example-contents"><p>'; + $retval = $this->escapePara() . '<div class="example-contents"><p>'; + ++$this->openPara; + return $retval; } + --$this->openPara; return "</p></div>" . $this->restorePara(); } public function format_programlisting($open, $name, $attrs) { @@ -1167,9 +1170,13 @@ } public function format_note($open, $name, $attrs, $props) { if ($open) { - return '<blockquote><p>'.$this->admonition_title("note", $props["lang"]). ': '; + $retval = $this->escapePara() . '<blockquote><p>'.$this->admonition_title("note", $props["lang"]). ': '; + ++$this->openPara; + return $retval; } - return "</p></blockquote>"; + + --$this->openPara; + return "</p></blockquote>" . $this->restorePara(); } public function format_note_title($open, $name, $attrs) { if ($open) { @@ -1189,8 +1196,10 @@ return ""; } if ($open) { + ++$this->openPara; return "<p><b>"; } + --$this->openPara; return "</b></p>"; } public function format_table_title($open, $name, $attrs, $props) {

« previous php.doc.cvs (#2907) next »