diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-28 14:40:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-28 14:40:07 +0000 |
commit | c9b7739a74541dbef4f181b528747683621fdc59 (patch) | |
tree | 570c01e9c2c506103b9cf83cee13696dc9d3dc16 /action.c | |
parent | 7685bccd7870b0115cddd02fd4f417334d295158 (diff) | |
download | mandoc-c9b7739a74541dbef4f181b528747683621fdc59.tar.gz |
Added support for traditional `Ds' width.
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 7 |
1 files changed, 4 insertions, 3 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])); |