Fix empty lines in HTML

This commit is contained in:
Alex Kotov 2024-09-17 10:22:18 +04:00
parent 8429456f1e
commit 4b5b7b79f5
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -37,11 +37,10 @@ module Repubmark
result += "</span>\n" result += "</span>\n"
end end
end end
result += %(<a href="#{url}">#{link_text}</a>) result += %(<a href="#{url}">#{link_text}</a>\n)
else else
result += link_text.to_s result += "#{link_text}\n" if link_text
end end
result += "\n"
result += @caption.to_html.to_s result += @caption.to_html.to_s
if alt_urls&.any? if alt_urls&.any?
result += %[(#{ result += %[(#{