From eb505cbf1e55f5fc4e872eef388c46ccfd814881 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 12 Dec 2016 22:28:03 +0100 Subject: Add more newline2 --- init.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'init.lua') 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" -- cgit v1.2.3