Skip to content
Snippets Groups Projects
Commit 4f2edea6 authored by pabois's avatar pabois
Browse files

fix static

parent 5cc82cd3
No related merge requests found
......@@ -22,6 +22,8 @@ class Static::Html < Static::Default
doc = Nokogiri::HTML::DocumentFragment.parse(text)
return text unless doc.children.any?
while(doc.children.first.name == 'p' && doc.children.first.text.strip == '')
doc.children.first.remove
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment