]> git.cameronkatri.com Git - mandoc.git/blobdiff - roff_html.c
do not break the line between Bsx/Bx/Fx/Nx/Ox/Dx and its arguments
[mandoc.git] / roff_html.c
index abb2ddf941dc0b72e02fc885f81bb7925d1f04dd..f023a9c439b02532c80131e12430d0891131dace 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: roff_html.c,v 1.7 2017/06/06 15:01:04 schwarze Exp $ */
+/*     $Id: roff_html.c,v 1.8 2017/06/08 12:54:58 schwarze Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2014, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -83,7 +83,7 @@ roff_html_pre_sp(ROFF_HTML_ARGS)
 
        SCALE_VS_INIT(&su, 1);
        if ((n = n->child) != NULL) {
-               if (a2roffsu(n->string, &su, SCALE_VS) == 0)
+               if (a2roffsu(n->string, &su, SCALE_VS) == NULL)
                        su.scale = 1.0;
                else if (su.scale < 0.0)
                        su.scale = 0.0;