version 1.150, 2017/03/15 13:18:53 |
version 1.152, 2017/03/18 16:19:11 |
Line 653 pg_searchres(const struct req *req, struct manpage *r, |
|
Line 653 pg_searchres(const struct req *req, struct manpage *r, |
|
for (i = 0; i < sz; i++) { |
for (i = 0; i < sz; i++) { |
printf(" <tr>\n" |
printf(" <tr>\n" |
" <td>" |
" <td>" |
"<a class=\"Xr\" href=\"/%s%s%s/%s\">", |
"<a class=\"Xr\" href=\"/"); |
scriptname, *scriptname == '\0' ? "" : "/", |
if (*scriptname != '\0') |
req->q.manpath, r[i].file); |
printf("%s/", scriptname); |
|
if (strcmp(req->q.manpath, req->p[0])) |
|
printf("%s/", req->q.manpath); |
|
printf("%s\">", r[i].file); |
html_print(r[i].names); |
html_print(r[i].names); |
printf("</a></td>\n" |
printf("</a></td>\n" |
" <td><span class=\"Nd\">"); |
" <td><span class=\"Nd\">"); |
Line 836 resp_format(const struct req *req, const char *file) |
|
Line 839 resp_format(const struct req *req, const char *file) |
|
conf.fragment = 1; |
conf.fragment = 1; |
conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); |
conf.style = mandoc_strdup(CSS_DIR "/mandoc.css"); |
usepath = strcmp(req->q.manpath, req->p[0]); |
usepath = strcmp(req->q.manpath, req->p[0]); |
mandoc_asprintf(&conf.man, "/%s%s%%N.%%S", |
mandoc_asprintf(&conf.man, "/%s%s%s%s%%N.%%S", |
|
scriptname, *scriptname == '\0' ? "" : "/", |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
usepath ? req->q.manpath : "", usepath ? "/" : ""); |
|
|
mparse_result(mp, &man, NULL); |
mparse_result(mp, &man, NULL); |