From 05e92672d6dab9aa61b39297bd0f8822c679f3fc Mon Sep 17 00:00:00 2001 From: Aire-One Date: Thu, 5 Dec 2019 18:39:51 +0100 Subject: [PATCH] Fix `@propemits` format mistakes. --- docs/config.ld | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/config.ld b/docs/config.ld index af2e316c0..90f7faa4b 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -250,7 +250,7 @@ add_custom_tag { -- @propemits true/false true/false description[...] add_custom_tag { name = "propemits", - title = "Emit signals:", + title = "Emit signals", hidden = false, params = {{name = "new_value"}, {name = "old_value"}}, format = function(self, params, item, md) @@ -271,18 +271,18 @@ add_custom_tag { -- Most signals also have the new value. if new_value then local type = item.params[1] or "unknown" - subs[2] = type.." ".."v The new value." + subs[2] = type.." ".."new_value The new value affected to the property." end -- Some also have the old value. if old_value then local type = item.params[1] or "unknown" - subs[3] = type.." ".."v The new value." + subs[3] = type.." ".."old_value The property's old value." end local new_params = { - name = { name = name, value = "property::"..item.name }, - description = params.description + name = { name = item.name, value = "property::"..item.name }, + description = description } return default_format_callback(self, new_params, item, md)