diff options
author | NIIBE Yutaka <[email protected]> | 2023-11-07 04:27:40 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-11-07 04:34:43 +0000 |
commit | ab6324e5787a00d2f42638277542bc96b91de52e (patch) | |
tree | 4c9fccc62e8f82bbd421a8fee94a74a7600def44 | |
parent | yat2m: Fix backslash output in man. (diff) | |
download | libgpg-error-ab6324e5787a00d2f42638277542bc96b91de52e.tar.gz libgpg-error-ab6324e5787a00d2f42638277542bc96b91de52e.zip |
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 <[email protected]>
-rw-r--r-- | doc/yat2m.c | 20 |
1 files 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", "<i>", "</i>" }, - { "code", 0, "\\fB", "\\fR", "<samp>", "</samp>" }, - { "url", 0, "\\fB", "\\fR", "<strong>", "</strong>" }, - { "sc", 0, "\\fB", "\\fR", "<span class=\"y2m-sc\">", "</span>" }, - { "var", 0, "\\fI", "\\fR", "<u>", "</u>" }, + { "command", 9, "\\fB", "\\fP", "<i>", "</i>" }, + { "code", 0, "\\fB", "\\fP", "<samp>", "</samp>" }, + { "url", 0, "\\fB", "\\fP", "<strong>", "</strong>" }, + { "sc", 0, "\\fB", "\\fP", "<span class=\"y2m-sc\">", "</span>" }, + { "var", 0, "\\fI", "\\fP", "<u>", "</u>" }, { "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", "<samp>", "</samp>" }, + { "option", 0, "\\fB", "\\fP", "<samp>", "</samp>" }, { "example", 10, ".RS 2\n.nf\n", NULL, "\n<pre>\n", "\n</pre>\n" }, { "smallexample", 10, ".RS 2\n.nf\n", NULL, "\n<pre>\n", "\n</pre>\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", "<em>", "</em>" }, + { "emph", 0, "\\fI", "\\fP", "<em>", "</em>" }, { "w", 1 }, { "c", 5 }, { "efindex", 1 }, |