From d3d6c62426151d8e577b0cea09e9fe6843142976 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 26 Feb 2021 12:36:32 +0100 Subject: [PATCH] xep2md: Include JID in author entry --- tools/xep2md.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xep2md.lua b/tools/xep2md.lua index db9e7876..739fbc8d 100644 --- a/tools/xep2md.lua +++ b/tools/xep2md.lua @@ -260,7 +260,9 @@ do end events.add_handler("author/", function (event) - if author.email then + if author.email and author.jid then + author = string.format("%s %s <%s> ", author.firstname, author.surname, author.email, author.jid); + elseif author.email then author = string.format("%s %s <%s>", author.firstname, author.surname, author.email); else author = string.format("%s %s", author.firstname, author.surname);