]> granicus.if.org Git - neomutt/commitdiff
docs: don't use smart quotes in manual examples
authorRichard Russon <rich@flatcap.org>
Fri, 11 Nov 2016 18:54:04 +0000 (18:54 +0000)
committerRichard Russon <rich@flatcap.org>
Sat, 12 Nov 2016 18:27:49 +0000 (18:27 +0000)
[ci skip]

doc/makedoc.c
init.h

index ec04e2cab771d6c2f09bef90978f26848f3b072a..bcc727142590c5141d2cd4ec1148c5bad0808064 100644 (file)
@@ -579,7 +579,7 @@ static void man_print_strval (const char *v, FILE *out)
     }
     
     if (*v == '"')
-      fputs ("\\(rq", out);
+      fputs ("\"", out);
     else if (*v == '\\')
       fputs ("\\\\", out);
     else if (*v == '-')
@@ -690,9 +690,9 @@ static void print_confline (const char *varname, int type, const char *val, FILE
       fprintf (out, "Type: %s\n", type2human (type));
       if (type == DT_STR || type == DT_RX || type == DT_ADDR || type == DT_PATH)
       {
-       fputs ("Default: \\(lq", out);
+       fputs ("Default: \"", out);
        man_print_strval (val, out);
-       fputs ("\\(rq\n", out);
+       fputs ("\"\n", out);
       }
       else {
        fputs ("Default: ", out);
@@ -1037,7 +1037,7 @@ static int print_it (int special, char *str, FILE *out, int docstat)
            for (; *str; str++)
            {
              if (*str == '"')
-               fputs ("\\(rq", out);
+               fputs ("\"", out);
              else if (*str == '\\')
                fputs ("\\\\", out);
               else if (*str == '-')
diff --git a/init.h b/init.h
index 3a6d50ca2a271beded2f56c9cb79426ecad65a29..e7b4b7b3667bd8ded7c829d6411c9af85c248473 100644 (file)
--- a/init.h
+++ b/init.h
@@ -91,9 +91,14 @@ struct option_t MuttVars[] = {
   /*
   ** .pp
   ** If set to \fIyes\fP, when composing messages containing the regular expression
-  ** specified by $attach_keyword (default is "\\<attach(|ed|ments?)\\>") and no attachments
-  ** are given, composition will be aborted. If set to \fIno\fP, composing
-  ** messages as such will never be aborted.
+  ** specified by $attach_keyword and no attachments ** are given, composition
+  ** will be aborted. If set to \fIno\fP, composing ** messages as such will never
+  ** be aborted.
+  ** .pp
+  ** Example:
+  ** .ts
+  ** set attach_keyword = "\\<attach(|ed|ments?)\\>"
+  ** .te
   */
   { "abort_nosubject", DT_QUAD, R_NONE, OPT_SUBJECT, MUTT_ASKYES },
   /*
@@ -1494,7 +1499,10 @@ struct option_t MuttVars[] = {
   ** .dt %u .dd username
   ** .de
   ** .pp
-  ** Example: set inews="/usr/local/bin/inews -hS"
+  ** Example:
+  ** .ts
+  ** set inews="/usr/local/bin/inews -hS"
+  ** .te
   */
 #endif
   { "ispell",          DT_PATH, R_NONE, UL &Ispell, UL ISPELL },
@@ -3220,7 +3228,7 @@ struct option_t MuttVars[] = {
   /*
   ** .pp
   ** Lines of quoted text that are displayed before the unquoted text after
-  ** "skip to quoted" command (S)
+  ** ``skip to quoted'' command (S)
   */
   { "sleep_time",      DT_NUM, R_NONE, UL &SleepTime, 1 },
   /*
@@ -3528,7 +3536,12 @@ struct option_t MuttVars[] = {
   ** .ie
   ** .pp
   ** You may optionally use the ``reverse-'' prefix to specify reverse sorting
-  ** order (example: ``\fCset sort=reverse-date-sent\fP'').
+  ** order.
+  ** .pp
+  ** Example:
+  ** .ts
+  ** set sort=reverse-date-sent
+  ** .te
   */
   { "sort_alias",      DT_SORT|DT_SORT_ALIAS,  R_NONE, UL &SortAlias, SORT_ALIAS },
   /*