diff --git a/phpdotnet/phd/Package/Generic/XHTML.php b/phpdotnet/phd/Package/Generic/XHTML.php index 798175bf..8b551f49 100644 --- a/phpdotnet/phd/Package/Generic/XHTML.php +++ b/phpdotnet/phd/Package/Generic/XHTML.php @@ -976,7 +976,7 @@ public function format_fieldsynopsis_modifier_text($value, $tag) { public function format_methodsynopsis($open, $name, $attrs) { if ($open) { - $this->params = array("count" => 0, "opt" => 0, "content" => ""); + $this->params = array("count" => 0, "opt" => 0, "content" => "", "ellipsis" => ''); $id = (isset($attrs[Reader::XMLNS_XML]["id"]) ? ' id="'.$attrs[Reader::XMLNS_XML]["id"].'"' : ''); return '
'; } @@ -998,9 +998,9 @@ public function format_methodparam_parameter($open, $name, $attrs, $props) } if ($open) { if (isset($attrs[Reader::XMLNS_DOCBOOK]["role"])) { - return ' &$'; + return ' &' . $this->params["ellipsis"] . '$'; } - return ' $'; + return ' ' . $this->params["ellipsis"] . '$'; } return ""; } @@ -1051,6 +1051,11 @@ public function format_methodparam($open, $name, $attrs) { } $content .= ' '; ++$this->params["count"]; + if (isset($attrs[Reader::XMLNS_DOCBOOK]["rep"]) && $attrs[Reader::XMLNS_DOCBOOK]["rep"] == "repeat") { + $this->params["ellipsis"] = '...'; + } else { + $this->params["ellipsis"] = ''; + } return $content; } return "";