diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 11:01:19 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 11:01:19 +0000 |
commit | 8c61f2c921a13b11e670f0f4a8195c1b11045c8d (patch) | |
tree | affb627a5be57d571130a498209cde4985ef2cf7 /mdoc.c | |
parent | 6fd4c9d365c408c83f9382855b2310891154a1f7 (diff) | |
download | mandoc-8c61f2c921a13b11e670f0f4a8195c1b11045c8d.tar.gz |
Merge schwarze@'s relaxation of scope-breaking rules: allow implicit
ending of scopes and drop stray scope-endings.
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -766,9 +766,7 @@ mdoc_pmacro(struct mdoc *m, int ln, char *buf, int offs) tok = (j > 1 || j < 4) ? mdoc_hash_find(mac) : MDOC_MAX; if (MDOC_MAX == tok) { - mdoc_vmsg(m, MANDOCERR_MACRO, ln, sv, - "unknown macro: %s%s", - buf, strlen(buf) > 3 ? "..." : ""); + mdoc_vmsg(m, MANDOCERR_MACRO, ln, sv, "%s", buf + sv - 1); return(1); } |