summaryrefslogtreecommitdiffstats
path: root/man2html/man2html.c
diff options
context:
space:
mode:
Diffstat (limited to 'man2html/man2html.c')
-rw-r--r--man2html/man2html.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/man2html/man2html.c b/man2html/man2html.c
index ca014c0..12326c1 100644
--- a/man2html/man2html.c
+++ b/man2html/man2html.c
@@ -1780,16 +1780,18 @@ scan_request(char *c) {
c=c+j;
if (*c == '\n') {
out_html(change_to_font(0));
+ } else if (*c == escapesym) {
+ int fn;
+ c=scan_expression(c, &fn);
+ c--;
+ out_html(change_to_font(fn));
+ } else if (isdigit(*c)) {
+ out_html(change_to_font(*c));
+ c++;
} else {
- if (*c == escapesym) {
- int fn;
- c=scan_expression(c, &fn);
- c--;
- out_html(change_to_font(fn));
- } else {
- out_html(change_to_font(*c));
- c++;
- }
+ int nr = str_to_code(c);
+ out_html(change_to_font(nr));
+ c += strcspn(c, " \t\n");
}
c=skip_till_newline(c);
break;