From b05af2073ff99a2aa218e452afec41907a240dc3 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 12 Oct 2007 20:29:42 +0100 Subject: xml dom extract footnote from grouped text --- lib/sisu/v0/xml_dom.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sisu/v0/xml_dom.rb') 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, + '\1\2 ') para.strip! @@xml[:body] << %{#{@tab*6}} << "\n" @@xml[:body] << %{#{@tab*7}#{ocn}} << "\n" -- cgit v1.2.3