From: Chris Hofstaedtler Date: Tue, 27 Aug 2024 09:41:39 +0000 (+0200) Subject: auth docs: reword LUA return paragraph X-Git-Tag: rec-5.2.0-alpha1~116^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14592%2Fhead;p=thirdparty%2Fpdns.git auth docs: reword LUA return paragraph Avoids misrender and warning from sphinx. --- diff --git a/docs/lua-records/index.rst b/docs/lua-records/index.rst index 1216675889..3da00b29ea 100644 --- a/docs/lua-records/index.rst +++ b/docs/lua-records/index.rst @@ -177,9 +177,10 @@ outside of Europe will hit 198.51.100.1 as long as it is available, and the Advanced topics --------------- -By default, LUA records are executed with ``return `` prefixed to them. This saves -a lot of typing for common cases. To run actual Lua scripts, start a record with a ``;`` -which indicates no ``return `` should be prepended. + +By default, LUA records are executed as if they were the argument to Lua's ``return`` statement. +This saves a lot of typing for common cases. +To run actual Lua scripts, start a record with a semicolon (``;``). You need to add your own ``return`` statement. To keep records more concise and readable, configuration can be stored in separate records. The full example from above can also be written as::