=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.170 retrieving revision 1.172 diff -u -p -r1.170 -r1.172 --- mandoc/mdoc_html.c 2011/06/16 22:21:28 1.170 +++ mandoc/mdoc_html.c 2011/07/04 09:42:38 1.172 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.170 2011/06/16 22:21:28 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.172 2011/07/04 09:42:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -610,6 +610,7 @@ mdoc_sh_pre(MDOC_ARGS) return(1); bufinit(h); + bufcat(h, "x"); for (n = n->child; n; n = n->next) { bufcat_id(h, n->string); if (n->next) @@ -636,6 +637,7 @@ mdoc_ss_pre(MDOC_ARGS) return(1); bufinit(h); + bufcat(h, "x"); for (n = n->child; n; n = n->next) { bufcat_id(h, n->string); if (n->next) @@ -1633,8 +1635,9 @@ mdoc_sp_pre(MDOC_ARGS) SCALE_VS_INIT(&su, 1); if (MDOC_sp == n->tok) { - if (n->child) - a2roffsu(n->child->string, &su, SCALE_VS); + if (NULL != (n = n->child)) + if ( ! a2roffsu(n->string, &su, SCALE_VS)) + SCALE_VS_INIT(&su, atoi(n->string)); } else su.scale = 0;