From ab6324e5787a00d2f42638277542bc96b91de52e Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 7 Nov 2023 13:27:40 +0900 Subject: yat2m: Use \fP to return previous font. * doc/yat2m.c (proc_texi_cmd): Use \fP instead of \fR. -- This can fix the output of following input (in gpg.texi): @item --list-filter @{select=@var{expr}@} The last right brace is in bold font. Signed-off-by: NIIBE Yutaka --- doc/yat2m.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/yat2m.c b/doc/yat2m.c index 25e9c5c..be93da3 100644 --- a/doc/yat2m.c +++ b/doc/yat2m.c @@ -1274,18 +1274,18 @@ proc_texi_cmd (FILE *fp, const char *command, const char *rest, size_t len, const char *html_in; /* Same as LEAD_IN but for HTML. */ const char *html_out;/* Same as LEAD_OUT but for HTML. */ } cmdtbl[] = { - { "command", 9, "\\fB", "\\fR", "", "" }, - { "code", 0, "\\fB", "\\fR", "", "" }, - { "url", 0, "\\fB", "\\fR", "", "" }, - { "sc", 0, "\\fB", "\\fR", "", "" }, - { "var", 0, "\\fI", "\\fR", "", "" }, + { "command", 9, "\\fB", "\\fP", "", "" }, + { "code", 0, "\\fB", "\\fP", "", "" }, + { "url", 0, "\\fB", "\\fP", "", "" }, + { "sc", 0, "\\fB", "\\fP", "", "" }, + { "var", 0, "\\fI", "\\fP", "", "" }, { "samp", 0, "\\(oq", "\\(cq" }, { "kbd", 0, "\\(oq", "\\(cq" }, - { "file", 0, "\\(oq\\fI","\\fR\\(cq" }, - { "env", 0, "\\(oq\\fI","\\fR\\(cq" }, + { "file", 0, "\\(oq\\fI","\\fP\\(cq" }, + { "env", 0, "\\(oq\\fI","\\fP\\(cq" }, { "acronym", 0 }, { "dfn", 0 }, - { "option", 0, "\\fB", "\\fR", "", "" }, + { "option", 0, "\\fB", "\\fP", "", "" }, { "example", 10, ".RS 2\n.nf\n", NULL, "\n
\n", "\n
\n" }, { "smallexample", 10, ".RS 2\n.nf\n", NULL, "\n
\n", "\n
\n" }, { "asis", 7 }, @@ -1294,9 +1294,9 @@ proc_texi_cmd (FILE *fp, const char *command, const char *rest, size_t len, { "ref", 0, "[", "]" }, { "xref", 0, "See: [", "]" }, { "pxref", 0, "see: [", "]" }, - { "uref", 0, "(\\fB", "\\fR)" }, + { "uref", 0, "(\\fB", "\\fP)" }, { "footnote",0, " ([", "])" }, - { "emph", 0, "\\fI", "\\fR", "", "" }, + { "emph", 0, "\\fI", "\\fP", "", "" }, { "w", 1 }, { "c", 5 }, { "efindex", 1 }, -- cgit v1.2.3