Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phpdotnet/phd/Package/Generic/Manpage.php
Original file line numberDiff line numberDiff line change
Expand Up@@ -422,15 +422,15 @@ public function format_suppressed_text($value, $tag) {
}

public function format_refsect_text($value, $tag) {
if ($this->cchunk["appendlater"] && isset($this->cchunk["buffer"]))
if (isset($this->cchunk["appendlater"]) && $this->cchunk["appendlater"] && isset($this->cchunk["buffer"]))
array_push($this->cchunk["buffer"], strtoupper('"'.$value.'"'));
else
return strtoupper('"'.$value.'"');
}

public function format_refsect_title($open, $name, $attrs, $props) {
if ($open) {
if ($this->cchunk["appendlater"] && isset($this->cchunk["buffer"]))
if (isset($this->cchunk["appendlater"]) && $this->cchunk["appendlater"] && isset($this->cchunk["buffer"]))
array_push($this->cchunk["buffer"], "\n.SH ");
else return "\n.SH ";
}
Expand Down