diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-14 14:00:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-14 14:00:58 +0000 |
commit | 023edf4ec5ce0ca4ca8353eda4442288245a4ee4 (patch) | |
tree | 83fe65116c1db50fe1d92bdd2067cd6b3dac2e4b /mdoc_validate.c | |
parent | e664fb1242d0c30cc4b7ada4a43fb7fa6c71eeb5 (diff) | |
download | mandoc-023edf4ec5ce0ca4ca8353eda4442288245a4ee4.tar.gz |
warn about punctuation between .Xr and .Rs in SEE ALSO;
inspired by mdoclint
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index fe4204be..04877d3e 100644 --- a/mdoc_validate.c +++ b/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); |