summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 27c7b46..ba6a544 100644
--- a/init.lua
+++ b/init.lua
@@ -309,10 +309,12 @@ doc.new_category("nodes", {
end
local datastring = ""
if longdesc ~= nil then
- datastring = datastring .. S("Description: @1", longdesc) .."\n\n"
+ datastring = datastring .. S("Description: @1", longdesc)
+ datastring = newline2(datastring)
end
if usagehelp ~= nil then
- datastring = datastring .. S("Usage help: @1", usagehelp) .. "\n\n"
+ datastring = datastring .. S("Usage help: @1", usagehelp)
+ datastring = newline2(datastring)
end
datastring = datastring .. S("Maximum stack size: @1", data.def.stack_max) .. "\n"
@@ -872,10 +874,12 @@ doc.new_category("craftitems", {
end
local datastring = ""
if longdesc ~= nil then
- datastring = datastring .. S("Description: @1", longdesc).."\n\n"
+ datastring = datastring .. S("Description: @1", longdesc)
+ datastring = newline2(datastring)
end
if usagehelp ~= nil then
- datastring = datastring .. S("Usage help: @1", usagehelp).. "\n\n"
+ datastring = datastring .. S("Usage help: @1", usagehelp)
+ datastring = newline2(datastring)
end
datastring = datastring .. S("Maximum stack size: @1", data.def.stack_max).. "\n"