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

Fix #1516 Document is empty
pull/1548/head
TheFrenchGhosty 4 years ago committed by GitHub
commit 44a4cea3a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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">

Loading…
Cancel
Save