From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id b1d95001; for ; Tue, 3 Mar 2015 16:12:05 -0500 (EST) Date: Tue, 3 Mar 2015 16:12:05 -0500 (EST) Message-Id: <18257488196933280079.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: If an eqn(7) starts on a new input line, be sure to output X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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. Modified Files: -------------- mdocml: man_html.c mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_html.c,v retrieving revision 1.225 retrieving revision 1.226 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.225 -r1.226 --- mdoc_html.c +++ mdoc_html.c @@ -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: Index: man_html.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/man_html.c,v retrieving revision 1.111 retrieving revision 1.112 diff -Lman_html.c -Lman_html.c -u -p -r1.111 -r1.112 --- man_html.c +++ man_html.c @@ -223,6 +223,8 @@ print_man_node(MAN_ARGS) print_text(h, n->string); return; case MAN_EQN: + if (n->flags & MAN_LINE) + putchar('\n'); print_eqn(h, n->eqn); break; case MAN_TBL: -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv