diff options
author | Wuzzy <almikes@aol.com> | 2016-12-12 22:56:15 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-12 22:56:15 +0100 |
commit | 88b5ca9599c22894ad5b3a26099108a1caf48af9 (patch) | |
tree | 8d1c9ddf23458d50cd5395d1baa2c8da6e81ec28 /init.lua | |
parent | 1b4c684ee47ee776f97aad27f9068693f4f38088 (diff) |
Avoid double newline for custom factoids
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |