X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..bc03f37c91e5464c1632fb37ab3c98edaac11d91:/doc/makedoc.c diff --git a/doc/makedoc.c b/doc/makedoc.c index 8075d58..07d3405 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); @@ -1143,7 +1150,7 @@ static int print_it (int special, char *str, FILE *out, int docstat) } case SP_END_TAB: { - fputs ("\n", out); + fputs ("", out); docstat &= ~D_TAB; docstat |= D_NL; break; @@ -1155,34 +1162,36 @@ static int print_it (int special, char *str, FILE *out, int docstat) fputs ("\n\n", out); docstat &= ~D_PA; } - fputs ("\n\n", out); + fputs ("\n\n\n\n", out); docstat |= D_DL; break; } case SP_DT: { - fputs ("", out); + fputs ("", out); break; } case SP_DD: { docstat |= D_DD; if (docstat & D_DL) - fputs("\n", out); - fputs ("", out); + fputs("", out); + else + fputs ("", out); break; } case SP_END_DD: { - docstat &= ~D_DD; - fputs ("", out); if (docstat & D_DL) - fputs("\n", out); + fputs ("\n", out); + else + fputs ("", out); + docstat &= ~D_DD; break; } case SP_END_DL: { - fputs ("\n", out); + fputs ("\n", out); docstat &= ~(D_DD|D_DL); break; }