X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=makedoc.c;h=29fa8f881ba278b3f159a1002df97560d1090bff;hp=88305dbe62f2b56014b1e3e9dfe6e6cd0c11099d;hb=0667a943d2454ec20b069133861cd40ffe685819;hpb=de56f2b85c0dd83d76484d358787a164c5eb3c5d diff --git a/makedoc.c b/makedoc.c index 88305db..29fa8f8 100644 --- a/makedoc.c +++ b/makedoc.c @@ -608,14 +608,17 @@ static int sgml_fputc (int c) return add_s ("<"); case '>': return add_s (">"); +#if 0 case '$': return add_s ("$"); case '_': return add_s ("_"); case '%': return add_s ("%"); +#endif case '&': return add_s ("&"); +#if 0 case '\\': return add_s ("\"); case '"': @@ -626,6 +629,7 @@ static int sgml_fputc (int c) return add_s ("]"); case '~': return add_s ("˜"); +#endif default: return add_c (c); } @@ -733,16 +737,11 @@ static void print_confline (const char *varname, int type, const char *val) /* SGML based manual */ case F_SGML: { - add_s ("\n\n"); + add_s ("\n<muttng-doc:vardef name=\""); sgml_fputs (varname); - add_s ("\nType: "); + add_s ("\">\nType: "); add_s (type2human (type)); add_s ("\n"); - add_s ("Configuration Variables"); - sgml_fputs (varname); - add_s ("\n\n"); if (type == DT_STR || type == DT_RX || type == DT_ADDR || type == DT_PATH) { @@ -1164,7 +1163,7 @@ static int print_it (int special, char *str, int docstat) } case SP_END_SECT: { - add_s ("\n"); + add_s ("\n"); break; } case SP_STR: @@ -1201,7 +1200,7 @@ void print_ref (int output_dollar, const char *ref) sgml_id_fputs (ref); add_s ("\">\n"); if (output_dollar) - add_s ("$"); + add_s ("$"); sgml_fputs (ref); add_s (""); break;