help / color / mirror / Atom feed
* Parsing of .Ex with -std argument
@ 2016-10-02 17:43 Abhinav Upadhyay
  2017-01-11 18:53 ` Ingo Schwarze
  0 siblings, 1 reply; 3+ messages in thread
From: Abhinav Upadhyay @ 2016-10-02 17:43 UTC (permalink / raw)
  To: discuss

Hi Ingo,

It was nice meeting you at EuroBSDCon, hope you have recovered from the travel.

I'm having issues parsing man pages which use the .Ex macro in the
EXIT STATUS section. For example mandoc -Ttree shows following output
for a man page using it:

Sh (block) *138:2
  Sh (head) 138:2
      EXIT STATUS (text) 138:5
  Sh (body) 138:2
      Ex (elem) -std *139:2
          nbperf (text) 139:2

This is causing makemandb(8) (NetBSD's indexing tool) parse the EXIT
STATUS section just as "nbperf" instead of the complete expanded text.

I compared this with the previous version of mandoc. The -Ttree output
then didn't use to show the Ex macro in the output and makemandb(8)
also indexed the EXIT STATUS section as blank strings (I am noticing
it just now).

I guess, I could fix this in makemandb(8) by adding a handler for .Ex
macro but it would probably be better if mandoc(3) provided some way
to handle it?

 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-11 20:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-02 17:43 Parsing of .Ex with -std argument Abhinav Upadhyay
2017-01-11 18:53 ` Ingo Schwarze
2017-01-11 20:30   ` Abhinav Upadhyay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).