diff options
-rw-r--r-- | action.c | 7 | ||||
-rw-r--r-- | validate.c | 4 |
2 files changed, 6 insertions, 5 deletions
@@ -392,10 +392,11 @@ post_bl_width(struct mdoc *mdoc) * the macro's width as set in share/tmac/mdoc/doc-common. */ - if (MDOC_MAX == (tok = mdoc_find(mdoc, *p))) + if (xstrcmp(*p, "Ds")) + width = 6; + else if (MDOC_MAX == (tok = mdoc_find(mdoc, *p))) return(1); - - if (0 == (width = mdoc_macro2len(tok))) + else if (0 == (width = mdoc_macro2len(tok))) return(mdoc_warn(mdoc, WARN_SYNTAX, "-%s macro has no length", mdoc_argnames[MDOC_Width])); @@ -491,8 +491,8 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p) p += (int)c - 1; continue; } - return(mdoc_perr(mdoc, line, pos, - "invalid escape sequence")); + return(mdoc_perr(mdoc, line, pos, + "invalid escape sequence")); } return(1); |