Software /
code /
verse
Changeset
466:1eaec52ff71a
browsing: whitespace fixes
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Mar 2023 09:23:56 +0000 (21 months ago) |
parents | 465:6707e3a47f71 |
children | 467:8e6a7a5e70b3 |
files | plugins/browsing.lua |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/browsing.lua Fri Mar 17 09:23:15 2023 +0000 +++ b/plugins/browsing.lua Fri Mar 17 09:23:56 2023 +0000 @@ -6,10 +6,10 @@ stream:add_plugin("pep"); function stream:browsing(infos, callback) if type(infos) == "string" then - infos = { uri = infos; }; + infos = {uri = infos}; end - local link = verse.stanza("page", {xmlns=xmlns_browsing}) + local link = verse.stanza("page", {xmlns = xmlns_browsing}) for info, value in pairs(infos) do link:tag(info):text(value):up(); end @@ -20,10 +20,10 @@ local item = event.item; return stream:event("browsing", { from = event.from; - description = item:get_child_text"description"; - keywords = item:get_child_text"keywords"; - title = item:get_child_text"title"; - uri = item:get_child_text"uri"; + description = item:get_child_text "description"; + keywords = item:get_child_text "keywords"; + title = item:get_child_text "title"; + uri = item:get_child_text "uri"; }); end); end