lib/rabbit/element/title-slide.rb in rabbit-0.6.4 vs lib/rabbit/element/title-slide.rb in rabbit-0.9.0

- old
+ new

@@ -1,7 +1,7 @@ require 'rabbit/element/slide-element' -require 'rabbit/element/text-container-element' +require 'rabbit/element/text-block-element' require 'rabbit/element/description-list' module Rabbit module Element class TitleSlide @@ -78,11 +78,11 @@ end end end class Title - include TextContainerElement + include TextBlockElement def to_rd "= #{text}" end @@ -90,11 +90,11 @@ "<h1>#{super}</h1>" end end class Subtitle - include TextContainerElement + include TextBlockElement def to_rd ": subtitle\n #{text}" end @@ -102,11 +102,11 @@ "<h2>#{super}</h2>" end end class Author - include TextContainerElement + include TextBlockElement def to_rd ": author\n #{text}" end @@ -114,11 +114,11 @@ "<address>#{super}</address>" end end class ContentSource - include TextContainerElement + include TextBlockElement def to_rd ": content-source\n #{text}" end @@ -126,11 +126,11 @@ "<p class='content-source'>#{super}</p>" end end class Institution - include TextContainerElement + include TextBlockElement def to_rd ": institution\n #{text}" end @@ -138,11 +138,11 @@ "<p class='institution'>#{super}</p>" end end class Date - include TextContainerElement + include TextBlockElement def to_rd ": date\n #{text}" end @@ -150,11 +150,11 @@ "<p class='date'>#{super}</p>" end end class Place - include TextContainerElement + include TextBlockElement def to_rd ": place\n #{text}" end @@ -162,11 +162,11 @@ "<p class='place'>#{super}</p>" end end class When - include TextContainerElement + include TextBlockElement def to_rd ": when\n #{text}" end @@ -174,10 +174,10 @@ "<p class='when'>#{super}</p>" end end class Where - include TextContainerElement + include TextBlockElement def to_rd ": where\n #{text}" end