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

Diff for /mandoc/cgi.c between version 1.179 and 1.180

version 1.179, 2022/07/06 16:05:40 version 1.180, 2022/07/06 17:21:04
Line 444  resp_searchform(const struct req *req, enum focus focu
Line 444  resp_searchform(const struct req *req, enum focus focu
   
         /* Write query input box. */          /* Write query input box. */
   
         printf("    <input type=\"search\" name=\"query\" value=\"");          printf("    <label>Search query:\n"
                  "      <input type=\"search\" name=\"query\" value=\"");
         if (req->q.query != NULL)          if (req->q.query != NULL)
                 html_print(req->q.query);                  html_print(req->q.query);
         printf( "\" size=\"40\"");          printf("\" size=\"40\"");
         if (focus == FOCUS_QUERY)          if (focus == FOCUS_QUERY)
                 printf(" autofocus");                  printf(" autofocus");
         puts(">");          puts(">\n    </label>");
   
         /* Write submission buttons. */          /* Write submission buttons. */
   
Line 491  resp_searchform(const struct req *req, enum focus focu
Line 492  resp_searchform(const struct req *req, enum focus focu
         /* Write manpath selector. */          /* Write manpath selector. */
   
         if (req->psz > 1) {          if (req->psz > 1) {
                 puts("    <select name=\"manpath\">");                  puts("    <select name=\"manpath\""
                        " aria-label=\"Manual path\">");
                 for (i = 0; i < (int)req->psz; i++) {                  for (i = 0; i < (int)req->psz; i++) {
                         printf("      <option");                          printf("      <option");
                         if (strcmp(req->q.manpath, req->p[i]) == 0)                          if (strcmp(req->q.manpath, req->p[i]) == 0)

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180

CVSweb