~theorytoe/mman

eae75b4b76c3fbc5d3d3cbe370f3f07cbe8aa5c5 — theorytoe 1 year, 5 months ago adafa45
fix: nroff-fmt patch
1 files changed, 68 insertions(+), 14 deletions(-)

M nroff-fmt.patch
M nroff-fmt.patch => nroff-fmt.patch +68 -14
@@ 1,14 1,68 @@
--- mman	2022-11-21 17:18:42.520223154 -0700
+++ mman.in	2022-11-21 17:19:39.896886314 -0700
@@ -91,9 +91,9 @@
 		file=${MMANDIR}/$1.$i.man
 		if [ -f "$file" ]; then
 			if istty; then
-				man -mandoc "$file"
+				nroff -Tascii -c mandoc < "$file" | $PAGER
 			else
-				man -mandoc "$file"
+				nroff -Tascii -c mandoc < "$file" 
 			fi
 		fi
 		file=${MMANDIR}/$1.$i.txt
--- mman.1	2022-11-21 22:18:01.252458882 -0700
+++ mman.1.in	1969-12-31 17:00:00.000000000 -0700
@@ -1,65 +0,0 @@
-.\" 
-.TH mman 1 2022-11-20 "mman 0.0-a"
-.SH NAME
-mman \- write personal mmanpages
-
-.SH SYNPOSYS
-.B mman
-.RI [ \-e | \-t | \-s | \-c | \-l ]
-.RI [ section ]
-.I name
-
-.SH DESCRIPTION
-Create man pages for personal documentation using plaintext, \fBtroff\fR(1), and \fBscdoc\fR(1)
-syntax. Pages are organized by section, similar to traditional manpages, but without the strict
-requirement to conform to those standards. If a 
-.I secion
-Is not specified, new pages will default to secion 0, a non-standard section.
-
-.TP
-\fB \-e \fR
-Edit a txt man page.
-
-.TP
-\fB \-t \fR
-Edit a troff man page.
-
-.TP
-\fB \-s \fR
-Edit an scdoc man page. Compiles pages after edit.
-
-.TP
-\fB \-c \fR
-Compile scdoc manpages.
-
-.TP
-\fB \-l \fR
-List available pages.
-
-.SH NOTES
-Be wary of pages written with scdoc. If a troff and scdoc page are named the same, compiling
-an scdoc page will overwrite the existsing troff page. This is intended behavior.
-
-.PP
-Man pages are shown with colors using \fBless\fR(1) termcap environment vars.
-
-.SH AUTHOR
-Written by theorytoe <\fBhttps://theoryware.net\fR> and contributors.
-
-.SH BUG REPORTS
-Bug reports and patches can be sent to the mailing list
-<\fB~theorytoe/public-inbox@lists.sr.ht\fR>
-
-.PP
-Patches sent must have in the 
-.I mman
-in the subject line ([PATCH \fImman\fR]).
-
-.SH COPYRIGHT
-Copyright © 2022 theorytoe and authors. Licensed under GPLv3.
-.PP
-This is free software: you are free to change and redistribute it. There is NO WARRANTY, to
-the extent permitted by law.
-
-.SH SEE ALSO
-\fBman\fR(7) \fBman-pages\fR(7) \fBnroff\fR(1) \fBtroff\fR(1) \fBscdoc\fR(5) \fBless\fR(1)