diff --git a/app/models/communication/block/with_heading_ranks.rb b/app/models/communication/block/with_heading_ranks.rb index 932bffca2b76a7a7f005b7873b34aec78220f2c3..d65a00053d9dbb471c0dcf50bede7f66a7475ce3 100644 --- a/app/models/communication/block/with_heading_ranks.rb +++ b/app/models/communication/block/with_heading_ranks.rb @@ -46,7 +46,7 @@ module Communication::Block::WithHeadingRanks # Not real yet: if a block is below a subtitle, it will have level 4 # There are no subtitles at the moment, so it's all between 2 and 3 def heading_rank_base - if block_title.present? + if block_title.present? && !block_title.empty? # We delegate the rank computing to the block title, and we add 1 block_title.heading_rank_self + 1 else