source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: In terminal output of man(7) documents, stop printing two extra
@ 2021-06-28 19:50 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2021-06-28 19:50 UTC (permalink / raw)
  To: source

Log Message:
-----------
In terminal output of man(7) documents, stop printing two extra blank
lines before the NAME section and before the page footer.  While these
blank lines had a long tradition, they didn't really serve any purpose
and merely wasted screen real estate.  Besides, this makes output from
man(7) more similar to output from mdoc(7).

This commit keeps mandoc compatible with groff-current, 
where G. Branden Robinson committed the same change 
on June 16 (groff commit 2278d6ed).

Modified Files:
--------------
    mandoc:
        TODO
        man_term.c
        mandoc.1

Revision Data
-------------
Index: mandoc.1
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc.1,v
retrieving revision 1.250
retrieving revision 1.251
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.250 -r1.251
--- mandoc.1
+++ mandoc.1
@@ -301,8 +301,8 @@ Format
 input files in
 .Xr mdoc 7
 output style.
-Specifically, this suppresses the two additional blank lines near the
-top and the bottom of each page, and it implies
+This prints the operating system name rather than the page title
+on the right side of the footer line, and it implies
 .Fl O Cm indent Ns =5 .
 One useful application is for checking that
 .Fl T Cm man
Index: man_term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_term.c,v
retrieving revision 1.235
retrieving revision 1.236
diff -Lman_term.c -Lman_term.c -u -p -r1.235 -r1.236
--- man_term.c
+++ man_term.c
@@ -1021,10 +1021,6 @@ print_man_foot(struct termp *p, const st
 	 */
 
 	if ( ! p->mdocstyle) {
-		if (meta->hasbody) {
-			term_vspace(p);
-			term_vspace(p);
-		}
 		mandoc_asprintf(&title, "%s(%s)",
 		    meta->title, meta->msec);
 	} else if (meta->os != NULL) {
@@ -1143,9 +1139,5 @@ print_man_head(struct termp *p, const st
 	 */
 
 	term_vspace(p);
-	if ( ! p->mdocstyle) {
-		term_vspace(p);
-		term_vspace(p);
-	}
 	free(title);
 }
Index: TODO
===================================================================
RCS file: /home/cvs/mandoc/mandoc/TODO,v
retrieving revision 1.315
retrieving revision 1.316
diff -LTODO -LTODO -u -p -r1.315 -r1.316
--- TODO
+++ TODO
@@ -456,7 +456,7 @@ are mere guesses, and some may be wrong.
 
 - HTML formatting of .nf should avoid <br/>
   and not close and re-open <pre> on .P
-  my mail to ports@ 27 Jun 2021 16:09:20 +0200
+  Reuben ua Brig  27 Jun 2021 17:26:29 +1000
   loc **  exist **  algo *  size *  imp **
 
 - get rid of the last handful of style= attributes such that
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


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

only message in thread, other threads:[~2021-06-28 19:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 19:50 mandoc: In terminal output of man(7) documents, stop printing two extra 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).