diff options
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -392,13 +392,17 @@ post_bl_width(struct mdoc *mdoc) * the macro's width as set in share/tmac/mdoc/doc-common. */ - if (xstrcmp(*p, "Ds")) + if (xstrcmp(*p, "Ds")) { + if ( ! mdoc_warn(mdoc, WARN_COMPAT, + "%s argument deprecated", + mdoc_argnames[MDOC_Width])) + return(0); width = 6; - else if (MDOC_MAX == (tok = mdoc_find(mdoc, *p))) + } else if (MDOC_MAX == (tok = mdoc_find(mdoc, *p))) return(1); else if (0 == (width = mdoc_macro2len(tok))) return(mdoc_warn(mdoc, WARN_SYNTAX, - "-%s macro has no length", + "%s macro has no length", mdoc_argnames[MDOC_Width])); mdoc_msg(mdoc, "re-writing %s argument: %s -> %zun", |