From 789580a2a2366243d622766fdadd094931ca6596 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 8 Jun 2017 12:54:58 +0000 Subject: make the internal a2roffsu() interface more powerful by returning a pointer to the end of the parsed data, making it easier to parse subsequent bytes --- roff_html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roff_html.c') diff --git a/roff_html.c b/roff_html.c index abb2ddf9..f023a9c4 100644 --- a/roff_html.c +++ b/roff_html.c @@ -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 * Copyright (c) 2014, 2017 Ingo Schwarze @@ -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; -- cgit v1.2.3