summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2009-06-07 02:09:08 +0200
committerRocco Rutte <pdmef@gmx.net>2009-06-07 02:09:08 +0200
commiteb9928e36900c29d031a0aa0c5776021b36e13c0 (patch)
tree03040a4a4ea529437f16d93c50a6cdcb3868ec76 /doc
parente8f431a390ed0c5754b4a88f7da483fbfecc1a86 (diff)
Fix hyphens in manpages. Closes #1937
Diffstat (limited to 'doc')
-rw-r--r--doc/dotlock.man2
-rw-r--r--doc/makedoc.c11
-rw-r--r--doc/mbox.man6
-rw-r--r--doc/mmdf.man3
-rw-r--r--doc/mutt.man40
5 files changed, 34 insertions, 28 deletions
diff --git a/doc/dotlock.man b/doc/dotlock.man
index 4d3256de..02d43dea 100644
--- a/doc/dotlock.man
+++ b/doc/dotlock.man
@@ -24,7 +24,7 @@ mutt_dotlock \- Lock mail spool files.
.SH SYNOPSIS
.PP
.B mutt_dotlock
-[-t|-f|-u|-d] [-p] [-r \fIretries\fP] \fIfile\fP
+[\-t|\-f|\-u|\-d] [\-p] [\-r \fIretries\fP] \fIfile\fP
.SH DESCRIPTION
.PP
.B mutt_dotlock
diff --git a/doc/makedoc.c b/doc/makedoc.c
index a79cc720..07d34050 100644
--- a/doc/makedoc.c
+++ b/doc/makedoc.c
@@ -576,6 +576,8 @@ static void man_print_strval (const char *v, FILE *out)
fputs ("\\(rq", out);
else if (*v == '\\')
fputs ("\\\\", out);
+ else if (*v == '-')
+ fputs ("\\-", out);
else
fputc (*v, out);
}
@@ -697,8 +699,11 @@ static void print_confline (const char *varname, int type, const char *val, FILE
man_print_strval (val, out);
fputs ("\\(rq\n", out);
}
- else
- fprintf (out, "Default: %s\n", val);
+ else {
+ fputs ("Default: ", out);
+ man_print_strval (val, out);
+ fputs ("\n", out);
+ }
fputs (".fi", out);
@@ -1040,6 +1045,8 @@ static int print_it (int special, char *str, FILE *out, int docstat)
fputs ("\\(rq", out);
else if (*str == '\\')
fputs ("\\\\", out);
+ else if (*str == '-')
+ fputs ("\\-", out);
else if (!strncmp (str, "``", 2))
{
fputs ("\\(lq", out);
diff --git a/doc/mbox.man b/doc/mbox.man
index 1980d0d4..09eaf91f 100644
--- a/doc/mbox.man
+++ b/doc/mbox.man
@@ -60,15 +60,15 @@ line; the second (\fBMBOXRD\fP) also quotes already quoted "From "
lines by prepending a '>' (i.e. ">From ", ">>From ", ...). The later
has the advantage that lines like
.IP "" 1
->From the command line you can use the '-p' option
+>From the command line you can use the '\-p' option
.PP
aren't dequoted wrongly as a \fBMBOXRD\fP-MDA would turn the line
into
.IP "" 1
->>From the command line you can use the '-p' option
+>>From the command line you can use the '\-p' option
.PP
before storing it. Besides \fBMBOXO\fP and \fBMBOXRD\fP there is also
-\fBMBOXCL\fP which is \fBMBOXO\fP with a "Content-Length:"-field with the
+\fBMBOXCL\fP which is \fBMBOXO\fP with a "Content-Length:"\-field with the
number of bytes in the message body; some MUAs (like
.BR mutt (1))
do automatically transform \fBMBOXO\fP mailboxes into \fBMBOXCL\fP ones when
diff --git a/doc/mmdf.man b/doc/mmdf.man
index fb7b9f00..e14d72b5 100644
--- a/doc/mmdf.man
+++ b/doc/mmdf.man
@@ -42,7 +42,6 @@ Subject: test
.br
>From what I learned about the MMDF-format:
.br
-...
.br
^A^A^A^A
.br
@@ -65,7 +64,7 @@ bar
In contrast to most other single file mailbox formats like
MBOXO and MBOXRD (see
.BR mbox (5))
-there is no need to quote/dequote "From "-lines in
+there is no need to quote/dequote "From "\-lines in
.B MMDF
mailboxes as such lines have no special meaning in this format.
.PP
diff --git a/doc/mutt.man b/doc/mutt.man
index e3b2bbec..18ad76a0 100644
--- a/doc/mutt.man
+++ b/doc/mutt.man
@@ -24,39 +24,39 @@ mutt \- The Mutt Mail User Agent
.PP
.B mutt
[-nRyzZ]
-[-e \fIcmd\fP] [-F \fIfile\fP] [-m \fItype\fP] [-f \fIfile\fP]
+[\-e \fIcmd\fP] [\-F \fIfile\fP] [\-m \fItype\fP] [\-f \fIfile\fP]
.PP
.B mutt
-[-nx]
-[-e \fIcmd\fP]
-[-F \fIfile\fP]
-[-H \fIfile\fP]
-[-i \fIfile\fP]
-[-s \fIsubj\fP]
-[-b \fIaddr\fP]
-[-c \fIaddr\fP]
+[\-nx]
+[\-e \fIcmd\fP]
+[\-F \fIfile\fP]
+[\-H \fIfile\fP]
+[\-i \fIfile\fP]
+[\-s \fIsubj\fP]
+[\-b \fIaddr\fP]
+[\-c \fIaddr\fP]
[\-a \fIfile\fP [...] \-\-]
\fIaddr\fP [...]
.PP
.B mutt
-[-nx]
-[-e \fIcmd\fP]
-[-F \fIfile\fP]
-[-s \fIsubj\fP]
-[-b \fIaddr\fP]
-[-c \fIaddr\fP]
+[\-nx]
+[\-e \fIcmd\fP]
+[\-F \fIfile\fP]
+[\-s \fIsubj\fP]
+[\-b \fIaddr\fP]
+[\-c \fIaddr\fP]
[\-a \fIfile\fP [...] \-\-]
\fIaddr\fP [...]
< message
.PP
.B mutt
-[-n] [-e \fIcmd\fP] [-F \fIfile\fP] -p
+[\-n] [\-e \fIcmd\fP] [\-F \fIfile\fP] \-p
.PP
.B mutt
-[-n] [-e \fIcmd\fP] [-F \fIfile\fP] -A \fIalias\fP
+[\-n] [\-e \fIcmd\fP] [\-F \fIfile\fP] \-A \fIalias\fP
.PP
.B mutt
-[-n] [-e \fIcmd\fP] [-F \fIfile\fP] -Q \fIquery\fP
+[\-n] [\-e \fIcmd\fP] [\-F \fIfile\fP] \-Q \fIquery\fP
.PP
.B mutt
-v[v]
@@ -132,12 +132,12 @@ Emulate the mailx compose mode.
Start Mutt with a listing of all mailboxes specified by the \fImailboxes\fP
command.
.IP "-z"
-When used with -f, causes Mutt not to start if there are no messages in the
+When used with \-f, causes Mutt not to start if there are no messages in the
mailbox.
.IP "-Z"
Causes Mutt to open the first mailbox specified by the \fImailboxes\fP
command which contains new mail.
-.IP "\-\-"
+.IP "--"
Treat remaining arguments as \fIaddr\fP even if they start with a dash.
See also "\-a" above.
.SH ENVIRONMENT