Skip to content

Commit

Permalink
suppress ul's level down to only 1. Closes: #1313
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Jun 2, 2019
1 parent 9e8b09d commit e1949fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/review/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ def compile_ulist(f)
@strategy.ul_item_begin buf
elsif level < current_level # down
level_diff = current_level - level
if level_diff != 1
error "too many *."
end
level = current_level
(1..(level_diff - 1)).to_a.reverse_each do |i|
@strategy.ul_begin { i }
Expand Down

0 comments on commit e1949fc

Please sign in to comment.