From 4b5b7b79f5a4b4a1f51c4adc585f3a6739428225 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 17 Sep 2024 10:22:18 +0400 Subject: [PATCH] Fix empty lines in HTML --- lib/repubmark/elems/footnote.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/repubmark/elems/footnote.rb b/lib/repubmark/elems/footnote.rb index 180701e..167d1b6 100644 --- a/lib/repubmark/elems/footnote.rb +++ b/lib/repubmark/elems/footnote.rb @@ -37,11 +37,10 @@ module Repubmark result += "\n" end end - result += %(#{link_text}) + result += %(#{link_text}\n) else - result += link_text.to_s + result += "#{link_text}\n" if link_text end - result += "\n" result += @caption.to_html.to_s if alt_urls&.any? result += %[(#{