diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-10-12 20:29:42 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-10-12 20:29:42 +0100 |
commit | b05af2073ff99a2aa218e452afec41907a240dc3 (patch) | |
tree | c55dc06c15249d825f77a687790d3070c2ae7ddc /lib/sisu/v0/xml_dom.rb | |
parent | available outputs shortcut display, description of odf:odt expanded (diff) |
xml dom extract footnote from grouped text
Diffstat (limited to 'lib/sisu/v0/xml_dom.rb')
-rw-r--r-- | lib/sisu/v0/xml_dom.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sisu/v0/xml_dom.rb b/lib/sisu/v0/xml_dom.rb index 83b15dc8..14cc162f 100644 --- a/lib/sisu/v0/xml_dom.rb +++ b/lib/sisu/v0/xml_dom.rb @@ -287,6 +287,8 @@ WOK def group_structure(para='',ocn='') para.gsub!(/<:group(?:-end)?>/,'') para=@trans.markup_group(para) + para.gsub!(/~\{(\d+)\s+(.+?)\s*<#@dp>\}~/m, + '<endnote><number>\1</number><note>\2</note></endnote> ') para.strip! @@xml[:body] << %{#{@tab*6}<object id="#{ocn}">} << "\n" @@xml[:body] << %{#{@tab*7}<ocn>#{ocn}</ocn>} << "\n" |