Package: txt2man
Version: 1.4.8-1
Followup-For: Bug #300152
Attached is a patch.
Only in txt2man-1.4.8.new/: build-stamp
Only in txt2man-1.4.8.new/: configure-stamp
Common subdirectories: txt2man-1.4.8/debian and txt2man-1.4.8.new/debian
diff -u txt2man-1.4.8/txt2man txt2man-1.4.8.new/txt2man
--- txt2man-1.4.8/txt2man 2003-07-07 04:30:11.000000000 -0600
+++ txt2man-1.4.8.new/txt2man 2005-03-17 17:08:06.564539288 -0700
@@ -181,6 +181,7 @@
{
sub(/\.\.\./, "\\.\\.\\.") # to avoid some side effects in regexp
sub(/^ +$/,"") # remove spaces in empty lines
+ sub(/-/,"\\-") # backslash-escape hyphens
}
/^[[:upper:][:space:]]+$/ { # Section header
if ((in_bd + 0) == 1) {
diff -u txt2man-1.4.8/txt2man.1 txt2man-1.4.8.new/txt2man.1
--- txt2man-1.4.8/txt2man.1 2003-07-01 06:19:55.000000000 -0600
+++ txt2man-1.4.8.new/txt2man.1 2005-03-17 17:09:45.568785265 -0700
@@ -1,12 +1,12 @@
." Text automatically generated by txt2man-1.4.7
-.TH txt2man "July 01, 2003" "" ""
+.TH txt2man "March 17, 2005" "" ""
.SH NAME
-\fBtxt2man \fP- convert flat ASCII text to man page format
+\fBtxt2man \- convert flat ASCII text to man page format
.SH SYNOPSIS
.nf
.fam C
-\fBtxt2man\fP [\fB-hpTX\fP] [\fB-t\fP \fImytitle\fP] [\fB-P\fP \fIpname\fP]
[\fB-r\fP \fIrel\fP] [\fB-s\fP \fIsect\fP]
-[\fB-v\fP \fIvol\fP] [\fB-I\fP \fItxt\fP] [\fB-B\fP \fItxt\fP] [\fIifile\fP]
+\fBtxt2man\fP [\-hpTX] [-t \fImytitle\fP] [-P \fIpname\fP] [-r \fIrel\fP] [-s
\fIsect\fP]
+[\-v \fIvol\fP] [-I \fItxt\fP] [-B \fItxt\fP] [\fIifile\fP]
.fam T
.fi
.SH DESCRIPTION
@@ -29,7 +29,7 @@
Sections
These headers are defined by a line in upper case, starting
column 1. If there is one or more leading spaces, a
-sub-section will be generated instead.
+sub\-section will be generated instead.
.TP
.B
Paragraphs
@@ -44,7 +44,7 @@
.TP
.B
Bullet list
-Bullet list items are defined by the first word being "-"
+Bullet list items are defined by the first word being "\-"
or "*" or "o".
.TP
.B
@@ -84,49 +84,52 @@
It is a good practice to embed documentation into source code, by using
comments or constant text variables. \fBtxt2man\fP allows to do that, keeping
the document source readable, usable even without further formatting
-(i.e. for online help) and easy to write. The result is high quality
+(i.e. for online help) and easy to write. The result is high quality
and standard complying document.
.SH OPTIONS
.TP
.B
-\fB-h\fP
-The option \fB-h\fP displays help.
+\-h
+The option -h displays help.
.TP
.B
-\fB-P\fP \fIpname\fP
-Set \fIpname\fP as project name in header. Default to uname \fB-s\fP.
+\-P \fIpname\fP
+Set \fIpname\fP as project name in header. Default to uname -s.
.TP
.B
-\fB-p\fP
+\-p
Probe title, section name and volume.
.TP
.B
-\fB-t\fP \fImytitle\fP
+\-t \fImytitle\fP
Set \fImytitle\fP as title of generated man page.
.TP
.B
-\fB-r\fP \fIrel\fP
+\-r \fIrel\fP
Set \fIrel\fP as project name and release.
.TP
.B
-\fB-s\fP \fIsect\fP
+\-s \fIsect\fP
Set \fIsect\fP as section in heading, ususally a value from 1 to 8.
--v \fIvol\fP Set \fIvol\fP as volume name, i.e. "Unix user 's manual".
.TP
.B
-\fB-I\fP \fItxt\fP
+\-v \fIvol\fP
+Set \fIvol\fP as volume name, i.e. "Unix user 's manual".
+.TP
+.B
+\-I \fItxt\fP
Italicize \fItxt\fP in output. Can be specified more than once.
.TP
.B
-\fB-B\fP \fItxt\fP
+\-B \fItxt\fP
Emphasize (bold) \fItxt\fP in output. Can be specified more than once.
.TP
.B
-\fB-T\fP
+\-T
Text result previewing using PAGER, usually \fBmore\fP(1).
.TP
.B
-\fB-X\fP
+\-X
X11 result previewing using \fBgxditview\fP(1).
.SH ENVIRONMENT
.TP
@@ -139,7 +142,7 @@
.PP
.nf
.fam C
- $ txt2man -h 2>&1 | txt2man -T
+ $ txt2man \-h 2>&1 | txt2man -T
.fam T
.fi
.SH HINTS
@@ -152,8 +155,7 @@
.SH SEE ALSO
\fBman\fP(1), \fBmandoc\fP(7), \fBrman\fP(1), \fBgroff\fP(1), \fBmore\fP(1),
\fBgxditview\fP(1), \fBtroff\fP(1).
.SH BUGS
-.IP \(bu 3
-Automatic probe (\fB-p\fP option) works only if input is a regular file (i.e.
+\- Automatic probe (-p option) works only if input is a regular file (i.e.
not stdin).
.SH AUTHOR
Marc Vertes <[EMAIL PROTECTED]>