Module: Infoboxer::Tree::HTMLTagCommons
- Included in:
- HTMLOpeningTag, HTMLTag
- Defined in:
- lib/infoboxer/tree/html.rb
Constant Summary collapse
- BLOCK_TAGS =
FIXME: are some other used in WP?
%w[div p br].freeze
Instance Method Summary collapse
Instance Method Details
#text ⇒ Object
8 9 10 |
# File 'lib/infoboxer/tree/html.rb', line 8 def text super + (BLOCK_TAGS.include?(tag) ? "\n" : '') end |