From: Richard Russon Date: Fri, 11 Nov 2016 18:54:04 +0000 (+0000) Subject: docs: don't use smart quotes in manual examples X-Git-Tag: neomutt-20161126~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ad064769728d9bc56ff2111fea3b317cad3d6ee;p=neomutt docs: don't use smart quotes in manual examples [ci skip] --- diff --git a/doc/makedoc.c b/doc/makedoc.c index ec04e2cab..bcc727142 100644 --- a/doc/makedoc.c +++ b/doc/makedoc.c @@ -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 3a6d50ca2..e7b4b7b36 100644 --- 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 "\\") 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 = "\\" + ** .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 }, /*