summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 3facfea..10e3b82 100644
--- a/init.lua
+++ b/init.lua
@@ -271,7 +271,9 @@ local get_custom_factoids = function(category_id, factoid_type, data)
for i=1,#ftable do
if factoid_type == nil or ftable[i].ftype == factoid_type then
datastring = datastring .. ftable[i].fgen(data.itemstring, data.def)
- datastring = newline(datastring)
+ if datastring ~= "" then
+ datastring = newline(datastring)
+ end
end
end
return datastring