class PrawnHtml::Tags::Ol

def block?

def block?
  true
end

def initialize(tag, attributes: {}, options: {})

def initialize(tag, attributes: {}, options: {})
  super
  @counter = 0
  @first_level = false
end

def on_context_add(context)

def on_context_add(context)
  return if context.map(&:tag).count { |el| el == :ol } > 1
  @first_level = true
end

def tag_styles

def tag_styles
  if @first_level
    <<~STYLES
      margin-top: #{MARGIN_TOP}px;
      margin-left: #{MARGIN_LEFT}px;
      margin-bottom: #{MARGIN_BOTTOM}px;
    STYLES
  else
    "margin-left: #{MARGIN_LEFT}px"
  end
end