Skip to content
Snippets Groups Projects
Commit 12af5313 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #2506

parent 28ff9318
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ module Communication::Block::WithHeadingRanks ...@@ -46,7 +46,7 @@ module Communication::Block::WithHeadingRanks
# Not real yet: if a block is below a subtitle, it will have level 4 # 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 # There are no subtitles at the moment, so it's all between 2 and 3
def heading_rank_base 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 # We delegate the rank computing to the block title, and we add 1
block_title.heading_rank_self + 1 block_title.heading_rank_self + 1
else else
......
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