]> granicus.if.org Git - apache/commitdiff
Correct a subtle reflow problem (evident in Mozilla Gecko/20010505) that
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 29 Jul 2001 21:24:51 +0000 (21:24 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 29 Jul 2001 21:24:51 +0000 (21:24 +0000)
  <hr>'s within <pre> tags (entirely illegal in the first place :) are not
  adjusted on window resize.  By moving the second <hr /> into the <pre>
  block, at least the two rules are consistent.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89769 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index bb22ace609514a6c7267576a6fbf5bbcb78ac987..5924cff6846b126b5295f3ebf65e7f70b0087cfd 100644 (file)
@@ -1361,7 +1361,7 @@ static void output_directories(struct ent **ar, int n,
             emit_link(r, "Description", K_DESC, keyid, direction,
                       static_columns);
        }
-       ap_rputs("\n<hr />\n", r);
+       ap_rputs("<hr />", r);
     }
     else {
        ap_rputs("<ul>", r);
@@ -1459,7 +1459,7 @@ static void output_directories(struct ent **ar, int n,
        ap_rputc('\n', r);
     }
     if (autoindex_opts & FANCY_INDEXING) {
-       ap_rputs("</pre>", r);
+       ap_rputs("<hr /></pre>", r);
     }
     else {
        ap_rputs("</ul>", r);
@@ -1645,9 +1645,6 @@ static int index_directory(request_rec *r,
                       direction);
     apr_dir_close(thedir);
 
-    if (autoindex_opts & FANCY_INDEXING) {
-       ap_rputs("<hr />\n", r);
-    }
     emit_tail(r, find_readme(autoindex_conf, r),
              autoindex_opts & SUPPRESS_PREAMBLE);