Skip to content

Commit

Permalink
PLATEAU: fixup for faulty empty section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed Jun 4, 2024
1 parent 470e968 commit 875dfb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/coradoc/reverse_adoc/plugins/plateau.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ def handle_headers_h4(node, coradoc, state)
coradoc.content.first.content = $1.strip
coradoc
else
["// FIXME\n", coradoc]
if Coradoc.strip_unicode(coradoc.content.first.content).empty?
# Strip instances of faulty empty paragraphs
nil
else
["// FIXME\n", coradoc]
end
end
end

Expand Down

0 comments on commit 875dfb4

Please sign in to comment.