From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 95e64f9b for ; Sat, 7 Jan 2017 21:01:47 -0500 (EST) Date: Sat, 7 Jan 2017 21:01:47 -0500 (EST) Message-Id: <9985021322336015141.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Tolerate bare tabs in SYNOPSIS .Cd for now. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Tolerate bare tabs in SYNOPSIS .Cd for now. It's used in half a dozen pages. Even though i have been thinking about it for years, i still can't suggest anything better. The false positives are annoying. Modified Files: -------------- mdocml: mdoc_validate.c Revision Data ------------- Index: mdoc_validate.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_validate.c,v retrieving revision 1.311 retrieving revision 1.312 diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.311 -r1.312 --- mdoc_validate.c +++ mdoc_validate.c @@ -297,7 +297,8 @@ mdoc_node_validate(struct roff_man *mdoc mdoc->next = ROFF_NEXT_SIBLING; switch (n->type) { case ROFFT_TEXT: - if (n->sec != SEC_SYNOPSIS || n->parent->tok != MDOC_Fd) + if (n->sec != SEC_SYNOPSIS || + (n->parent->tok != MDOC_Cd && n->parent->tok != MDOC_Fd)) check_text(mdoc, n->line, n->pos, n->string); break; case ROFFT_EQN: -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv