fputs ("\\(rq", out);
else if (*v == '\\')
fputs ("\\\\", out);
+ else if (*v == '-')
+ fputs ("\\-", out);
else
fputc (*v, out);
}
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);
fputs ("\\(rq", out);
else if (*str == '\\')
fputs ("\\\\", out);
+ else if (*str == '-')
+ fputs ("\\-", out);
else if (!strncmp (str, "``", 2))
{
fputs ("\\(lq", out);
}
case SP_END_TAB:
{
- fputs ("\n</screen>", out);
+ fputs ("</screen>", out);
docstat &= ~D_TAB;
docstat |= D_NL;
break;
fputs ("\n</para>\n", out);
docstat &= ~D_PA;
}
- fputs ("\n<variablelist>\n", out);
+ fputs ("\n<informaltable>\n<tgroup cols=\"2\">\n<tbody>\n", out);
docstat |= D_DL;
break;
}
case SP_DT:
{
- fputs ("<varlistentry><term>", out);
+ fputs ("<row><entry>", out);
break;
}
case SP_DD:
{
docstat |= D_DD;
if (docstat & D_DL)
- fputs("</term>\n", out);
- fputs ("<listitem><para>", out);
+ fputs("</entry><entry>", out);
+ else
+ fputs ("<listitem><para>", out);
break;
}
case SP_END_DD:
{
- docstat &= ~D_DD;
- fputs ("</para></listitem>", out);
if (docstat & D_DL)
- fputs("</varlistentry>\n", out);
+ fputs ("</entry></row>\n", out);
+ else
+ fputs ("</para></listitem>", out);
+ docstat &= ~D_DD;
break;
}
case SP_END_DL:
{
- fputs ("</para></listitem></varlistentry></variablelist>\n", out);
+ fputs ("</entry></row></tbody></tgroup></informaltable>\n", out);
docstat &= ~(D_DD|D_DL);
break;
}