diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
commit | 85ebc4c346a67252f8e7e3a1c4326920984c01e7 (patch) | |
tree | eb357aa2d9480946318b9ecccf29e86489a2862c /roff.c | |
parent | 120073f11aa98a6e6187a5bd14df4505cfe2c087 (diff) | |
download | mandoc-85ebc4c346a67252f8e7e3a1c4326920984c01e7.tar.gz |
mention requests and macros in more messages
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1975,7 +1975,7 @@ roff_so(ROFF_ARGS) char *name; name = *bufp + pos; - mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, ".so %s", name); + mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, "so %s", name); /* * Handle `so'. Be EXTREMELY careful, as we shouldn't be @@ -2067,7 +2067,8 @@ roff_getname(struct roff *r, char **cpp, int ln, int pos) cp++; if ('\\' == *cp) continue; - mandoc_msg(MANDOCERR_NAMESC, r->parse, ln, pos, NULL); + mandoc_vmsg(MANDOCERR_NAMESC, r->parse, ln, pos, + "%.*s", (int)(cp - name + 1), name); mandoc_escape((const char **)&cp, NULL, NULL); break; } |