]> granicus.if.org Git - apache/commitdiff
Remove useless <br \> in highlight blocks.
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 1 May 2016 06:36:33 +0000 (06:36 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 1 May 2016 06:36:33 +0000 (06:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1741841 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/custom-error.xml
docs/manual/developer/hooks.xml
docs/manual/developer/output-filters.xml
docs/manual/howto/htaccess.xml
docs/manual/howto/public_html.xml
docs/manual/howto/ssi.xml
docs/manual/logs.xml
docs/manual/mod/mod_include.xml
docs/manual/mod/mod_lua.xml
docs/manual/mod/mod_rewrite.xml

index 1698b89768aa7c1cdef76f6d45e9042e7629022c..0f3c41ba3ee5980f0701c8e8ada4073325bdd5f2 100644 (file)
     FileInfo.</p>
 
     <highlight language="config">
-ErrorDocument 500 "Sorry, our script crashed. Oh dear"<br />
-ErrorDocument 500 /cgi-bin/crash-recover<br />
-ErrorDocument 500 http://error.example.com/server_error.html<br />
-ErrorDocument 404 /errors/not_found.html <br />
+ErrorDocument 500 "Sorry, our script crashed. Oh dear"
+ErrorDocument 500 /cgi-bin/crash-recover
+ErrorDocument 500 http://error.example.com/server_error.html
+ErrorDocument 404 /errors/not_found.html
 ErrorDocument 401 /subscription/how_to_subscribe.html
     </highlight>
 
@@ -147,8 +147,8 @@ ErrorDocument 401 /subscription/how_to_subscribe.html
 
        <highlight language="perl">
 ...
-print  "Content-type: text/html\n"; <br />
-printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
+print  "Content-type: text/html\n";
+printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
 ...
       </highlight>
 
@@ -175,8 +175,8 @@ printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
     <p>In your server configuration file, you'll see a line such as:</p>
 
     <highlight language="config">
-    # Multi-language error messages<br />
-    #Include conf/extra/httpd-multilang-errordoc.conf
+# Multi-language error messages
+#Include conf/extra/httpd-multilang-errordoc.conf
     </highlight>
 
     <p>Uncommenting this <code>Include</code> line will enable this
index 0c01da572dada02e97a8c43904b863e22d85dc3c..37ea0608d6bfea1825c5d6101f488c56c58bafc0 100644 (file)
@@ -65,7 +65,7 @@
       takes a <code>request_rec *</code> and an <code>int</code> and is
       called <code>do_something</code>, then declare it like this:</p>
       <highlight language="c">
-        AP_DECLARE_HOOK(int, do_something, (request_rec *r, int n))
+AP_DECLARE_HOOK(int, do_something, (request_rec *r, int n))
       </highlight>
 
       <p>This should go in a header which modules will include if
@@ -96,7 +96,7 @@ APR_HOOK_STRUCT(
         hooks are called, and the caller is implemented like this:</p>
 
         <highlight language="c">
-          AP_IMPLEMENT_HOOK_VOID(do_something, (request_rec *r, int n), (r, n))
+AP_IMPLEMENT_HOOK_VOID(do_something, (request_rec *r, int n), (r, n))
         </highlight>
 
         <p>The second and third arguments are the dummy argument
@@ -118,7 +118,7 @@ void ap_run_do_something(request_rec *r, int n)
         the first hook that does something interesting, like so:</p>
 
         <highlight language="c">
-          AP_IMPLEMENT_HOOK_RUN_FIRST(int, do_something, (request_rec *r, int n), (r, n), DECLINED)
+AP_IMPLEMENT_HOOK_RUN_FIRST(int, do_something, (request_rec *r, int n), (r, n), DECLINED)
         </highlight>
 
         <p>The first hook that does <em>not</em> return <code>DECLINED</code>
@@ -135,7 +135,7 @@ void ap_run_do_something(request_rec *r, int n)
         return is the return value. Declare these like so:</p>
 
         <highlight language="c">
-          AP_IMPLEMENT_HOOK_RUN_ALL(int, do_something, (request_rec *r, int n), (r, n), OK, DECLINED)
+AP_IMPLEMENT_HOOK_RUN_ALL(int, do_something, (request_rec *r, int n), (r, n), OK, DECLINED)
         </highlight>
 
         <p>Again, <code>OK</code> and <code>DECLINED</code> are the traditional
@@ -165,7 +165,7 @@ ret=ap_run_do_something(r, n);
       of the correct type:</p>
 
       <highlight language="c">
-static int my_something_doer(request_rec *r, int n)<br />
+static int my_something_doer(request_rec *r, int n)
 {
     ...
     return OK;
index 25658e7d6996177fe4cf1209175277e5df170d13..7aa43beea7ec36d0eed13a0dc1edca2d44465120 100644 (file)
 
     <example><title>How to handle an empty brigade</title>
     <highlight language="c">
-    apr_status_t dummy_filter(ap_filter_t *f, apr_bucket_brigade *bb)<br />
-    {
-        if (APR_BRIGADE_EMPTY(bb)) {
-            return APR_SUCCESS;
-        }
-        ....
+apr_status_t dummy_filter(ap_filter_t *f, apr_bucket_brigade *bb)
+{
+    if (APR_BRIGADE_EMPTY(bb)) {
+        return APR_SUCCESS;
+    }
+    ...
     </highlight>
     </example>
 
@@ -281,16 +281,16 @@ const char *data;
 apr_size_t length;
 
 while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
-   rv = apr_bucket_read(e, &amp;data, &amp;length, APR_BLOCK_READ);
-   if (rv) ...;
-   /* Remove bucket e from bb. */
-   APR_BUCKET_REMOVE(e);
-   /* Insert it into  temporary brigade. */
-   APR_BRIGADE_INSERT_HEAD(tmpbb, e);
-   /* Pass brigade downstream. */
-   rv = ap_pass_brigade(f->next, tmpbb);
-   if (rv) ...;
-   apr_brigade_cleanup(tmpbb);
+    rv = apr_bucket_read(e, &amp;data, &amp;length, APR_BLOCK_READ);
+    if (rv) ...;
+    /* Remove bucket e from bb. */
+    APR_BUCKET_REMOVE(e);
+    /* Insert it into  temporary brigade. */
+    APR_BRIGADE_INSERT_HEAD(tmpbb, e);
+    /* Pass brigade downstream. */
+    rv = ap_pass_brigade(f->next, tmpbb);
+    if (rv) ...;
+    apr_brigade_cleanup(tmpbb);
 }
 </highlight>
     </example>
@@ -311,26 +311,24 @@ while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
     <example><title>Example code to maintain filter state</title>
 <highlight language="c">
 struct dummy_state {
-   apr_bucket_brigade *tmpbb;
-   int filter_state;
-   ...
+    apr_bucket_brigade *tmpbb;
+    int filter_state;
+    ...
 };
 
 apr_status_t dummy_filter(ap_filter_t *f, apr_bucket_brigade *bb)
 {
-
     struct dummy_state *state;
     
     state = f->ctx;
     if (state == NULL) {
     
-       /* First invocation for this response: initialise state structure.
-        */
-       f->ctx = state = apr_palloc(f->r->pool, sizeof *state);
-
-       state->tmpbb = apr_brigade_create(f->r->pool, f->c->bucket_alloc);
-       state->filter_state = ...;
+        /* First invocation for this response: initialise state structure.
+         */
+        f->ctx = state = apr_palloc(f->r->pool, sizeof *state);
 
+        state->tmpbb = apr_brigade_create(f->r->pool, f->c->bucket_alloc);
+        state->filter_state = ...;
     }
     ...
 </highlight>
@@ -430,7 +428,8 @@ while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
         /* Retry, using a blocking read. */
         mode = APR_BLOCK_READ;
         continue;
-    } else if (rv != APR_SUCCESS) {
+    }
+    else if (rv != APR_SUCCESS) {
         /* handle errors */
     }
 
index 988fe25b4aab9046d077e256020b647f24f1c643..5cb632141e2e531572cf417169d8de1d24360092 100644 (file)
@@ -307,7 +307,7 @@ Options Includes
 &lt;/Directory&gt;
 
 &lt;Location "/"&gt;
-    Options +IncludesNoExec -ExecCGI<br />
+    Options +IncludesNoExec -ExecCGI
 &lt;/Location&gt;
     </highlight>
 
index 063501378b0c5cbc3d1c22f383915d5880c14f12..cbec42cd0f8f6f53b2afe4d0eb9685adc151bff9 100644 (file)
     using a configuration like the following:</p>
 
     <highlight language="config">
-      UserDir disabled<br />
-      UserDir enabled rbowen krietz
+UserDir disabled
+UserDir enabled rbowen krietz
     </highlight>
 
     <p>See <directive module="mod_userdir">UserDir</directive>
index 776b7df9cfae75a02f0709edf8d76e76796618b6..dc9b40a18189434c46a0ee654271c6236eabdbc9 100644 (file)
@@ -95,7 +95,7 @@ existing HTML documents.</p>
     directive either in your <code>httpd.conf</code> file, or in a
     <code>.htaccess</code> file:</p>
 <highlight language="config">
-        Options +Includes
+Options +Includes
 </highlight>
 
     <p>This tells Apache that you want to permit files to be parsed
@@ -111,8 +111,8 @@ existing HTML documents.</p>
     particular file extension, such as <code>.shtml</code>, with
     the following directives:</p>
 <highlight language="config">
-        AddType text/html .shtml<br />
-        AddOutputFilter INCLUDES .shtml
+AddType text/html .shtml
+AddOutputFilter INCLUDES .shtml
 </highlight>
 
     <p>One disadvantage to this approach is that if you wanted to
@@ -124,7 +124,7 @@ existing HTML documents.</p>
     <p>The other method is to use the <directive
     module="mod_include">XBitHack</directive> directive:</p>
 <highlight language="config">
-        XBitHack on
+XBitHack on
 </highlight>
 
     <p><directive module="mod_include">XBitHack</directive>
index 1757ec75f114759d0c3c1821e28e665179520ac4..a6a91985f8f11675edf74755f7a7529278ed448a 100644 (file)
@@ -476,9 +476,9 @@ CustomLog logs/access_log common env=!dontlog
       different log file.</p>
 
       <highlight language="config">
-        SetEnvIf Accept-Language "en" english<br />
-        CustomLog logs/english_log common env=english<br />
-        CustomLog logs/non_english_log common env=!english
+SetEnvIf Accept-Language "en" english
+CustomLog logs/english_log common env=english
+CustomLog logs/non_english_log common env=!english
       </highlight>
 
       <p>In a caching scenario one would want to know about
index 04b57fcd1087fe7b882eca2e37321f8893c06e95..40cf8f671e68c6e5e5a6a6a96045129ba0ed7b2c 100644 (file)
@@ -64,7 +64,7 @@ AddOutputFilter INCLUDES .shtml
     is set):</p>
 
     <highlight language="config">
-      Options +Includes
+Options +Includes
     </highlight>
 
     <p>For backwards compatibility, the <code>server-parsed</code>
@@ -823,7 +823,7 @@ AddOutputFilter INCLUDES .shtml
     looks for to mark the end of an include element.</p>
 
     <highlight language="config">
-      SSIEndTag "%&gt;"
+SSIEndTag "%&gt;"
     </highlight>
 
 </usage>
@@ -844,7 +844,7 @@ AddOutputFilter INCLUDES .shtml
     displays when a variable is not set and &quot;echoed&quot;.</p>
 
     <highlight language="config">
-      SSIUndefinedEcho "&lt;!-- undef --&gt;"
+SSIUndefinedEcho "&lt;!-- undef --&gt;"
     </highlight>
 </usage>
 </directivesynopsis>
@@ -871,7 +871,7 @@ directive]&quot;</default>
     errmsg=<var>message</var> --&gt;</code> element.</p>
 
     <highlight language="config">
-      SSIErrorMsg "&lt;!-- Error --&gt;"
+SSIErrorMsg "&lt;!-- Error --&gt;"
     </highlight>
 </usage>
 </directivesynopsis>
@@ -893,8 +893,8 @@ directive]&quot;</default>
     different times).</p>
 
     <highlight language="config">
-      SSIStartTag "&lt;%"<br />
-      SSIEndTag   "%&gt;"
+SSIStartTag "&lt;%"
+SSIEndTag   "%&gt;"
     </highlight>
 
     <p>The example given above, which also specifies a matching
@@ -930,7 +930,7 @@ displayed</description>
     timefmt=<var>formatstring</var> --&gt;</code> element.</p>
 
     <highlight language="config">
-      SSITimeFormat "%R, %B %d, %Y"
+SSITimeFormat "%R, %B %d, %Y"
     </highlight>
 
     <p>The above directive would cause times to be displayed in the
index 2dab4b7e303001b3b847474acbf26000263a6fda..077fddc3ff963ac6340c6de0a5c3a62c3ee30758 100644 (file)
@@ -1032,16 +1032,16 @@ end
 <section id="logging"><title>Logging Functions</title>
 
 <highlight language="lua">
-        -- examples of logging messages<br />
-        r:trace1("This is a trace log message") -- trace1 through trace8 can be used <br />
-        r:debug("This is a debug log message")<br />
-        r:info("This is an info log message")<br />
-        r:notice("This is a notice log message")<br />
-        r:warn("This is a warn log message")<br />
-        r:err("This is an err log message")<br />
-        r:alert("This is an alert log message")<br />
-        r:crit("This is a crit log message")<br />
-        r:emerg("This is an emerg log message")<br />
+-- examples of logging messages
+r:trace1("This is a trace log message") -- trace1 through trace8 can be used
+r:debug("This is a debug log message")
+r:info("This is an info log message")
+r:notice("This is a notice log message")
+r:warn("This is a warn log message")
+r:err("This is an err log message")
+r:alert("This is an alert log message")
+r:crit("This is a crit log message")
+r:emerg("This is an emerg log message")
 </highlight>
 
 </section>
index 3c73246f9a94d0b1576160daef030c740a9b0828..187472c9ba1bd9fde783958883828b20a60905b8 100644 (file)
@@ -70,8 +70,8 @@ URLs on the fly</description>
 
     <example><title>Example</title>
     <highlight language="config">
-      LogLevel alert rewrite:trace3
-      </highlight>
+LogLevel alert rewrite:trace3
+    </highlight>
     </example>
 
     <note><title>RewriteLog</title>
@@ -941,7 +941,7 @@ RewriteRule ^(.+) /other/archive/$1 [R]
 
         </li>
 
-       <li>
+        <li>
            <p>If the <em>TestString</em> has the special value <code>expr</code>, the
            <em>CondPattern</em> will be treated as an
            <a href="../expr.html">ap_expr</a>.</p>
@@ -953,7 +953,7 @@ RewriteRule ^(.+) /other/archive/$1 [R]
            </p>
 
            <highlight language="config">
-RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"<br />
+RewriteCond expr "! %{HTTP_REFERER} -strmatch '*://%{HTTP_HOST}/*'"
 RewriteRule "^/images" "-" [F]
            </highlight>
         </li>