From: Aurelien DARRAGON Date: Mon, 13 Mar 2023 18:36:13 +0000 (+0100) Subject: DOC: lua: silence "literal block ends without a blank line" Sphinx warnings X-Git-Tag: v2.8-dev7~39 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=d5c80d7ab1651d109b452c8c3e1329133000b6f9;p=haproxy-3.0.git DOC: lua: silence "literal block ends without a blank line" Sphinx warnings When building html documentation from doc/lua-api/index.rst, sphinx complains about some literal blocks ending without a blank line: "doc/lua-api/index.rst:534: WARNING: Literal block ends without a blank line; unexpected unindent." Adding the missing blank lines to make sphinx happy --- diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index 917b684..038400a 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -510,6 +510,7 @@ Core class frontend http_frt mode http http-request lua.hello-world + .. A second example using arguments @@ -520,6 +521,7 @@ Core class txn:Info("Hello world for " .. arg) end core.register_action("hello-world", { "tcp-req", "http-req" }, hello_world, 2) + .. This example code is used in HAProxy configuration like this: @@ -529,6 +531,7 @@ Core class frontend tcp_frt mode tcp tcp-request content lua.hello-world everybody + .. .. js:function:: core.register_converters(name, func) @@ -644,6 +647,7 @@ Core class frontend http mode http filter lua.my-filter arg1 arg2 arg3 + .. :see: :js:class:`Filter`