]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: silence "literal block ends without a blank line" Sphinx warnings
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 13 Mar 2023 18:36:13 +0000 (19:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
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

doc/lua-api/index.rst

index 917b68481a82b26a4ce005e81b1f17c31d7967ca..038400a079c8436c7d55e2ae347a937152cbd448 100644 (file)
@@ -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`