* mdocml: warn about punctuation between .Xr and .Rs in SEE ALSO; inspired
@ 2017-05-14 14:01 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-05-14 14:01 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-14 14:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-14 14:01 mdocml: warn about punctuation between .Xr and .Rs in SEE ALSO; inspired schwarze
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).