From c059952238a30471c40b13effbfb4d0fa9029987 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 3 Mar 2015 21:11:34 +0000 Subject: If an eqn(7) starts on a new input line, be sure to output whitespace in front of it. Issue found by tedu@ in glOrtho(3). There are also cases of excessive whitespace before and after equations. This patch neither fixes them nor makes them worse. --- mdoc_html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 09104f8f..fba7fb6f 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.225 2015/02/12 12:24:33 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.226 2015/03/03 21:11:34 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -411,6 +411,8 @@ print_mdoc_node(MDOC_ARGS) h->flags |= HTML_NOSPACE; return; case MDOC_EQN: + if (n->flags & MDOC_LINE) + putchar('\n'); print_eqn(h, n->eqn); break; case MDOC_TBL: -- cgit v1.2.3-56-ge451