Merge pull request #1546 from schwukas/fix-empty-documents

Fix #1516 Document is empty
This commit is contained in:
TheFrenchGhosty
2020-12-07 16:23:00 +00:00
committed by GitHub

View File

@@ -27,7 +27,7 @@
</div>
<div class="h-box">
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
<p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %></span></p>
</div>
<div class="h-box">