Sha256: f6edf2387041c75b39a2b9f78496d5adf1cb025d98b53ad56efa86233cd06808
Contents?: true
Size: 538 Bytes
Versions: 36
Compression:
Stored size: 538 Bytes
Contents
require 'rabbit/element/text-block-element' require 'rabbit/element/block-element' module Rabbit module Element class PreformattedBlock include TextBlockElement include BlockHorizontalCentering def text super.gsub(/^/, " ") end def to_rd text end def to_html(generator) "<pre#{attributes}>#{super}</pre>" end private def attributes "" end end class PreformattedText include TextContainerElement end end end
Version data entries
36 entries across 36 versions & 1 rubygems