summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 11:01:19 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 11:01:19 +0000
commit8c61f2c921a13b11e670f0f4a8195c1b11045c8d (patch)
treeaffb627a5be57d571130a498209cde4985ef2cf7 /mdoc.c
parent6fd4c9d365c408c83f9382855b2310891154a1f7 (diff)
downloadmandoc-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index 855eac96..78dec88f 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -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);
}