=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.316 retrieving revision 1.318 diff -u -p -r1.316 -r1.318 --- mandoc/mdoc_term.c 2015/04/02 23:48:20 1.316 +++ mandoc/mdoc_term.c 2015/04/18 16:06:41 1.318 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.316 2015/04/02 23:48:20 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.318 2015/04/18 16:06:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012-2015 Ingo Schwarze @@ -251,7 +251,7 @@ static const struct termact termacts[MDOC_MAX] = { void -terminal_mdoc(void *arg, const struct mdoc *mdoc) +terminal_mdoc(void *arg, const struct roff_man *mdoc) { const struct roff_meta *meta; struct roff_node *n; @@ -533,7 +533,7 @@ a2width(const struct termp *p, const char *v) SCALE_HS_INIT(&su, term_strlen(p, v)); su.scale /= term_strlen(p, "0"); } - return(term_hspan(p, &su)); + return(term_hspan(p, &su) / 24); } /*