svn: /phd/trunk/ package.xml phpdotnet/phd/Package/PEAR/XHTML.php

From: Date: Thu, 15 Oct 2009 17:33:17 +0000
Subject: svn: /phd/trunk/ package.xml phpdotnet/phd/Package/PEAR/XHTML.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5151@lists.php.net to get a copy of this message
cweiske Thu, 15 Oct 2009 17:33:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289678 Log: fix bug #49839: Patch to clean up peardoc output Bug: http://bugs.php.net/49839 (Open) Patch to clean up peardoc output Changed paths: U phd/trunk/package.xml U phd/trunk/phpdotnet/phd/Package/PEAR/XHTML.php Modified: phd/trunk/package.xml =================================================================== --- phd/trunk/package.xml 2009-10-15 17:23:20 UTC (rev 289677) +++ phd/trunk/package.xml 2009-10-15 17:33:17 UTC (rev 289678) @@ -65,6 +65,7 @@ - Fixed bug #48264 - No style for HTML version of php docs (Moacir) - Fixed bug #49547 - default of --color is true, not false (Richard Quadling) - Fixed bug #49743 - Problem with functions both procedural and oo (Moacir) + - Fixed bug #49839 - Patch to clean up peardoc output (Michael Gauthier) </notes> <contents> Modified: phd/trunk/phpdotnet/phd/Package/PEAR/XHTML.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/PEAR/XHTML.php 2009-10-15 17:23:20 UTC (rev 289677) +++ phd/trunk/phpdotnet/phd/Package/PEAR/XHTML.php 2009-10-15 17:33:17 UTC (rev 289678) @@ -123,8 +123,6 @@ 'para' => array( /* DEFAULT */ 'format_para', 'question' => 'span',//can't ignore it since it's defined in format - 'warning' => 'format_warning_para', - 'important' => 'format_suppressed_tags', ), 'paramdef' => 'format_paramdef', 'parameter' => array( @@ -198,7 +196,6 @@ /* DEFAULT */ 'format_para', 'entry' => 'p', 'listitem' => 'p', - 'warning' => 'format_warning_para', ), 'simplelist' => 'format_itemizedlist', /* FIXME: simplelists has few attributes that need to be implemented */ 'spanspec' => 'format_suppressed_tags', @@ -523,7 +520,7 @@ $idstr = ''; if (isset($attrs[Reader::XMLNS_XML]['id'])) { $id = $attrs[Reader::XMLNS_XML]['id']; - $idstr = ' id="' .$id. '" name="' .$id. '"'; + $idstr = ' id="' . $id . '"'; } return '<' .$tag. ' class="' .$name. '"' . $idstr. '>' . ($props['empty'] ? "</{$tag}>" : ''); } @@ -624,7 +621,7 @@ return $this->escapePara() . '<div class="'. ($this->role ? $this->role . 'code' : 'programlisting') - . '" style="background-color:#EEE; width: 100%">'; + . '">'; } $this->role = false; $this->trim = false; @@ -661,11 +658,15 @@ { if ($open) { return $this->escapePara() - . '<pre class="screen" style="background-color:#EEE; width: 100%">'; + . '<pre class="screen">'; } return "</pre>\n" . $this->restorePara(); } + public function format_screen_text($value, $tag) { + return ($this->TEXT($value)); + } + public function format_literallayout($open, $name, $attrs) { //FIXME: add support for attributes like class, continuation etc @@ -774,7 +775,7 @@ { if ($open) { return $this->escapePara() - . '<blockquote class="' . $name . '"><strong>'.$this->autogen($name, $props['lang']). ': </strong>'; + . '<blockquote class="' . $name . '">'; } return "</blockquote>\n" . $this->restorePara(); } @@ -782,7 +783,7 @@ public function format_table($open, $name, $attrs, $props) { if ($open) { - return $this->escapePara() . '<table border="1" class="'.$name.'">'; + return $this->escapePara() . '<table class="' . $name . '">'; } return "</table>\n" . $this->restorePara(); } @@ -812,9 +813,9 @@ if ($props['empty']) return ''; if ($open) { - return '<caption><strong>'; + return '<caption>'; } - return '</strong></caption>'; + return '</caption>'; } public function format_userinput($open, $name, $attrs) @@ -837,31 +838,19 @@ { if ($open) { return $this->escapePara() - . '<div class="warning" style="border: 3px double black; padding: 5px">' . "\n"; + . '<blockquote class="warning">' . "\n"; } - return "</div>\n" . $this->restorePara(); + return "</blockquote>\n" . $this->restorePara(); } public function format_warning_title($open, $name, $attrs, $props) { if ($open) { - return '<strong class="warning_title" style="display:block; text-align: center; width:100%">'; + return '<h3 class="warning-title">'; } - return "</strong>\n"; + return "</h3>\n"; } - public function format_warning_para($open, $name, $attrs, $props) - { - if ($open) { - if (!$props['sibling']) { - return '<strong>' . $this->autogen('warning', $props['lang']) . "</strong>\n" - . '<p>'; - } - return '<p>'; - } - return "</p>\n"; - } - public function format_refname_function_text($value) { $this->cchunk['refname'][] = '<b class="function">' . $this->TEXT($value . '()') . '</b>';

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