diff --git a/docs/scripting.xml b/docs/scripting.xml
index ea0ae5753..198788b3c 100644
--- a/docs/scripting.xml
+++ b/docs/scripting.xml
@@ -3955,8 +3955,8 @@ calls would yield a false status.
loaded as files. Each file loaded is executed by Lua. If a
portrule is present, then it is saved in the
porttests table with a portrule key and file
- closure value. Otherwise, if the script has a hostrule
- , then it is saved in the hosttests table
+ closure value. Otherwise, if the script has a
+ hostrule, then it is saved in the hosttests table
in the same manner.