| 502 | } |
| 503 | |
| 504 | static void menu_comment(request_rec *r, char *menu, char *comment) |
| 505 | { |
| 506 | /* comments are ignored in the 'formatted' form */ |
| 507 | if (!strcasecmp(menu, "formatted")) { |
| 508 | ap_rputs("\n", r); /* print just a newline if 'formatted' */ |
| 509 | } |
| 510 | else if (!strcasecmp(menu, "semiformatted") && *comment) { |
| 511 | ap_rvputs(r, comment, "\n", NULL); |
| 512 | } |
| 513 | else if (!strcasecmp(menu, "unformatted") && *comment) { |
| 514 | ap_rvputs(r, comment, "\n", NULL); |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | static void menu_default(request_rec *r, const char *menu, const char *href, const char *text) |
| 519 | { |
no test coverage detected