Skip to content

Commit

Permalink
Fix code formatting differences in screen elements
Browse files Browse the repository at this point in the history
  • Loading branch information
haszi committed Jun 2, 2024
1 parent ddbf045 commit d412ea7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions phpdotnet/phd/Package/Generic/XHTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -1626,8 +1626,22 @@ public function format_programlisting_text($value, $tag) {
}
public function format_screen($open, $name, $attrs) {
if ($open) {
if ($this->getRole() !== "examples"
&& $this->getRole() !== "description"
&& $this->getRole() !== "notes"
&& $this->getRole() !== "returnvalues"
&& $this->getRole() !== "parameters") {
$this->pushRole('');
}
return '<div class="example-contents ' .$name. '">';
}
if ($this->getRole() !== "examples"
&& $this->getRole() !== "description"
&& $this->getRole() !== "notes"
&& $this->getRole() !== "returnvalues"
&& $this->getRole() !== "parameters") {
$this->popRole();
}
return '</div>';
}
public function format_constant($open, $name, $attrs)
Expand Down

0 comments on commit d412ea7

Please sign in to comment.