lib/prawn_html/tags/br.rb
# frozen_string_literal: true module PrawnHtml module Tags class Br < Tag ELEMENTS = [:br].freeze BR_SPACING = Utils.convert_size('17') def block? true end def custom_render(pdf, context) return if context.last_text_node || !context.previous_tag.is_a?(Br) pdf.advance_cursor(BR_SPACING) end end end end