By applying "/Sh Name/i.ds doc-topic-name" to the input to explicitly
clear what should've been, I've managed to work around this.
But, it should just work instead.

I see 
  .  ds doc-topic-name \" empty
in .de doc-end-macro and then
  .\" NS Dd user macro (not parsed, not callable)
  .\" NS   set document date
  .\" NS
  .\" NS modifies:
  .\" NS   doc-date-string
  .\" NS
  .\" NS width register 'Dd' set above
  .
  .eo
  .de Dd
  .  \" If batch processing (rendering multiple) man page documents, we
  .  \" must handle the end of a previous document.
  .  \"
  .  \" If also continuously rendering, cause a page transition to a new
  .  \" mdoc(7) document.
  .  if \n[doc-need-titles-reset] \{\
  .    if \n[cR] .doc-end-macro
  .
  .    \" Clear the page header trap so it is not sprung with stale
  .    \" information.
  .    ch doc-header
  .    doc-break-page-with-new-number
  .  \}
  .  if \n[C] .rr P
  .
  .  if !\n[.$] \
  .    tm mdoc warning: .Dd directive expects an argument (#\n[.c])
  .  if \n[.$] \{\
  .    ie "\$1"$Mdocdate:" .ds doc-date-string \$2\~\$3, \$4\"
  .    el                  .ds doc-date-string \$*\"
  .  \}
  ..
  .ec
where doc-need-titles-reset is =0 on init, becomes =1 in .Os,
and doesn't appear to be cleared anywhere?
No clue what's up with that.

Attachment: signature.asc
Description: PGP signature

Reply via email to