[BACK]Return to cgi.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/cgi.c between version 1.150 and 1.151

version 1.150, 2017/03/15 13:18:53 version 1.151, 2017/03/15 13:49:50
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\">");

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

CVSweb