From 4710086f8977fc1a78adc4e4f8e36d915d92ef2e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 18 Sep 2014 09:13:51 -0700 Subject: Allow more than two character names in .nr. --- man2html/man2html.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/man2html/man2html.c b/man2html/man2html.c index 68bb4d0..1a2ae54 100644 --- a/man2html/man2html.c +++ b/man2html/man2html.c @@ -2297,8 +2297,8 @@ scan_request(char *c) { { INTDEF *intd; c=c+j; - i=V(c[0],c[1]); - c=c+2; + i=str_to_code(c, 0); + c+=strcspn(c, " \n"); intd=intdef; while (intd && intd->nr!=i) intd=intd->next; if (!intd) { @@ -2309,12 +2309,11 @@ scan_request(char *c) { intd->next=intdef; intdef=intd; } - while (*c == ' ' || *c == '\t') c++; + c+=strspn(c, " \t"); c=scan_expression(c,&intd->val); - if (*c!='\n') { - while (*c == ' ' || *c == '\t') c++; + c+=strspn(c, " \t"); + if (*c!='\n') c=scan_expression(c,&intd->incr); - } c=skip_till_newline(c); break; } -- cgit v1.2.3