lib/citeproc/ruby/formats/html.rb in citeproc-ruby-1.1.6 vs lib/citeproc/ruby/formats/html.rb in citeproc-ruby-1.1.7

- old
+ new

@@ -18,12 +18,16 @@ :bib_hanging_indent => '0.5', :bib_unit => 'em', :bib_indent => ' ' } + @vertical_align = Hash.new { |_,k| k } + @vertical_align['sup'] = 'super' + class << self attr_reader :defaults + attr_reader :vertical_align end attr_reader :config def initialize(config = nil) @@ -99,10 +103,12 @@ def apply_text_decoration css['text-decoration'] = options[:'text-decoration'] end def apply_vertical_align - css['vertical-align'] = options[:'vertical-align'] + css['vertical-align'] = Html.vertical_align[ + options[:'vertical-align'] + ] end def apply_display output.replace( content_tag(config[:display], output, 'class' => "csl-#{options[:display]}" )