Index: phpdotnet/phd/Package/PEAR/XHTML.php =================================================================== --- phpdotnet/phd/Package/PEAR/XHTML.php (revision 289537) +++ phpdotnet/phd/Package/PEAR/XHTML.php (working copy) @@ -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'] ? "" : ''); } @@ -624,7 +621,7 @@ return $this->escapePara() . '
'; + . '">'; } $this->role = false; $this->trim = false; @@ -661,11 +658,15 @@ { if ($open) { return $this->escapePara() - . '
';
+                . '
';
         }
         return "
\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() - . '
'.$this->autogen($name, $props['lang']). ': '; + . '
'; } return "
\n" . $this->restorePara(); } @@ -782,7 +783,7 @@ public function format_table($open, $name, $attrs, $props) { if ($open) { - return $this->escapePara() . ''; + return $this->escapePara() . '
'; } return "
\n" . $this->restorePara(); } @@ -812,9 +813,9 @@ if ($props['empty']) return ''; if ($open) { - return ''; + return ''; } - return ''; + return ''; } public function format_userinput($open, $name, $attrs) @@ -837,31 +838,19 @@ { if ($open) { return $this->escapePara() - . '
' . "\n"; + . '
' . "\n"; } - return "
\n" . $this->restorePara(); + return "
\n" . $this->restorePara(); } public function format_warning_title($open, $name, $attrs, $props) { if ($open) { - return ''; + return '

'; } - return "\n"; + return "

\n"; } - public function format_warning_para($open, $name, $attrs, $props) - { - if ($open) { - if (!$props['sibling']) { - return '' . $this->autogen('warning', $props['lang']) . "\n" - . '

'; - } - return '

'; - } - return "

\n"; - } - public function format_refname_function_text($value) { $this->cchunk['refname'][] = '' . $this->TEXT($value . '()') . '';