source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: If an eqn(7) starts on a new input line, be sure to output
@ 2015-03-03 21:12 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-03-03 21:12 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-03 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 21:12 mdocml: If an eqn(7) starts on a new input line, be sure to output schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).