Skip to content

Commit

Permalink
Remove ReaderKeeper from Generic XHTML format
Browse files Browse the repository at this point in the history
  • Loading branch information
haszi committed Jun 13, 2024
1 parent e18fd3e commit 905a64b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpdotnet/phd/Package/Generic/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -1967,9 +1967,9 @@ public function format_entry($open, $name, $attrs, $props) {
}
public function format_qandaset($open, $name, $attrs, $props) {
if ($open) {
$node = ReaderKeeper::getReader()->expand();
$xml = "<qandaset>" . $props["innerXml"] . "</qandaset>";
$doc = new \DOMDocument;
$doc->appendChild($node);
$doc->loadXml($xml);

$xp = new \DOMXPath($doc);
$xp->registerNamespace("db", Reader::XMLNS_DOCBOOK);
Expand Down
1 change: 1 addition & 0 deletions phpdotnet/phd/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function execute(Reader $r) { /* {{{ */
(
$r->name === "type" ||
$r->name === "classsynopsis" ||
$r->name === "qandaset" ||
in_array($r->name, ["methodsynopsis", "constructorsynopsis", "destructorsynopsis"], true)
)
) {
Expand Down

0 comments on commit 905a64b

Please sign in to comment.