Class: SiSU_XML_ODF_ODT_Format::Tags

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/xml_odf_odt_format.rb

Instance Method Summary collapse

Instance Method Details

#set_bookmark_tag(dob) ⇒ Object



122
123
124
125
126
127
128
129
130
# File 'lib/sisu/xml_odf_odt_format.rb', line 122

def set_bookmark_tag(dob)
  tags=''
  if dob.tags.length > 0
    dob.tags.each do |tag|
      tags +=%{ <text:span text:style-name="Span_subscript"><text:bookmark-start text:name="#{tag}"/><text:bookmark-end text:name="#{tag}"/></text:span>}
    end
  end
  tags
end