Method: IsoDoc::Function::Blocks#para_class

Defined in:
lib/isodoc/function/blocks.rb

#para_class(node) ⇒ Object



132
133
134
135
136
137
138
139
140
141
# File 'lib/isodoc/function/blocks.rb', line 132

def para_class(node)
  classtype = nil
  classtype = "MsoCommentText" if in_comment
  classtype = "Sourcecode" if @annotation
  if node["type"] == "floating-title"
    classtype = "h#{node['depth']}"
  end
  classtype ||= node["class"]
  classtype
end