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 fb461bfa for ; Sun, 14 May 2017 09:01:28 -0500 (EST) Date: Sun, 14 May 2017 09:01:28 -0500 (EST) Message-Id: <12794685755656538823.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: warn about punctuation between .Xr and .Rs in SEE ALSO; inspired X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- warn about punctuation between .Xr and .Rs in SEE ALSO; inspired by mdoclint 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.326 retrieving revision 1.327 diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.326 -r1.327 --- mdoc_validate.c +++ mdoc_validate.c @@ -1879,7 +1879,7 @@ post_sh_see_also(POST_ARGS) if (isalpha((const unsigned char)*name)) return; lastpunct = n->string; - if (n->next == NULL) + if (n->next == NULL || n->next->tok == MDOC_Rs) mandoc_vmsg(MANDOCERR_XR_PUNCT, mdoc->parse, n->line, n->pos, "%s after %s(%s)", lastpunct, lastname, lastsec); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv