class PrawnHtml::Context
def evaluate_element_styles(element, res)
def evaluate_element_styles(element, res) styles = element.styles.slice(*Attributes::STYLES_APPLY[:text_node]) styles.each do |key, val| if res.include?(key) && res[key].is_a?(Array) res[key] += val else res[key] = val end end end