diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-09-18 09:13:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-09-18 09:13:51 -0700 |
commit | 4710086f8977fc1a78adc4e4f8e36d915d92ef2e (patch) | |
tree | ca935c63a60c6b0c6e3f044935b62fd7d9703d1c | |
parent | f05a3ac70b1789550e03a2d2e68a24cc03affe36 (diff) | |
download | man-4710086f8977fc1a78adc4e4f8e36d915d92ef2e.tar.gz man-4710086f8977fc1a78adc4e4f8e36d915d92ef2e.tar.bz2 man-4710086f8977fc1a78adc4e4f8e36d915d92ef2e.zip |
Allow more than two character names in .nr.
-rw-r--r-- | man2html/man2html.c | 11 |
1 files 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; } |