# HG changeset patch # User Kim Alvefur # Date 1533054548 -7200 # Node ID 01503000d2f1e8628a6327d3f09be872894189d9 # Parent 66b3085ecc4922c18a6f459a7120b6f93501925c mod_pastebin: Make first line and URL more clearly separated diff -r 66b3085ecc49 -r 01503000d2f1 mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Thu Jul 26 10:35:30 2018 +0100 +++ b/mod_pastebin/mod_pastebin.lua Tue Jul 31 18:29:08 2018 +0200 @@ -132,7 +132,7 @@ local summary = (body:sub(1, max_summary_length):gsub(utf8_pattern, drop_invalid_utf8) or ""):match("[^\n]+") or ""; summary = summary:match("^%s*(.-)%s*$"); local summary_prefixed = summary:match("[,:]$"); - replace_tag(stanza, st.stanza("body"):text(summary .. " " .. url)); + replace_tag(stanza, st.stanza("body"):text(summary .. "\n" .. url)); stanza:add_child(st.stanza("query", { xmlns = "jabber:iq:oob" }):tag("url"):text(url));