From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.161.182]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id dc7498ae for ; Sun, 2 Oct 2016 12:43:02 -0500 (EST) Received: by mail-yw0-f182.google.com with SMTP id i129so96420767ywb.0 for ; Sun, 02 Oct 2016 10:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ll+dvn1gOhCyt+4RnbWJg4E3cakiPSPrPJSVJRPP4Sk=; b=i5UKTpwlhFpVbwm90RfpXanhWPyj7d8KcSe9kyfJYf8kuyGRuU9E1hW5jbWuxUq5WE Sf1pn2tpLikSfwmCJMMYHnQHExBezyCsSzw7MZD8n6FhQliTUba0E0mUdUobd1BCcfC6 sAMXxGlp0QjlB9Rc//6x8978N6tJxnO27sXuQeyuIEq5eobaCRz2Ou3gfBxrL5tLlBrz s+PBGBS+tj7n9LWU8kqJc4E2wZKg81nfAw9XUFQPXwdrtTMDQ2h7+CkAKUwlIqfbWk7e rPbR15sFhD3JmF3GMPk2F/vKwT73RLLWAcXlRViFpupbimqReG2Tl8Ys9YrNtQooMtAI RaYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ll+dvn1gOhCyt+4RnbWJg4E3cakiPSPrPJSVJRPP4Sk=; b=VPqX8NKHmdKwXjaRgx1N+lRMTqL5vbQMNVRLsnDpkNPSMWaDB5noZfYokSDtC4jxN6 gsPpDZtJ/aZkmeTLtOoNIRQ96EGwNloB6IrPwoealjiNjkpa3pECw5c+I7dvAsafI5EX SWMlI012jSWvs8vNwcxeZsVq8rkn7vzJnffcDp3cw1+evB2iLDHGOsl1nXK691ifNP5M KmVavnMrj86gKvmG0Kua5v7ooivwdiUE1b41TRMtaxMSyqJjX81uHg6j9Fv8qU5DGegB /iljwZKv1t/MuqAE4uQGO0quro92731GZ8/eZ42rst4bBe6H1/HhkrDYVDCfFLMRDsHa BYKw== X-Gm-Message-State: AA6/9Rn7B5KqNq7PI6U16p0J5o4MbnwSGUF1zo2SjVMpMK3mt5PyAu8F1TJT9IqXxYJTcoBQGKM/wLk74GbE4Q== X-Received: by 10.129.159.79 with SMTP id w76mr2404669ywg.193.1475430181287; Sun, 02 Oct 2016 10:43:01 -0700 (PDT) X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Received: by 10.37.30.139 with HTTP; Sun, 2 Oct 2016 10:43:00 -0700 (PDT) From: Abhinav Upadhyay Date: Sun, 2 Oct 2016 23:13:00 +0530 Message-ID: Subject: Parsing of .Ex with -std argument To: discuss@mdocml.bsd.lv Content-Type: text/plain; charset=UTF-8 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? Regards Abhinav -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv