Skip to content

Commit

Permalink
bugfix: reversing order of multiple preface elements with same name i…
Browse files Browse the repository at this point in the history
…n Presentation XML: metanorma/isodoc#617
  • Loading branch information
opoudjis committed Dec 3, 2024
1 parent e0523c3 commit db4fc1d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/isodoc/iho/presentation_xml_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def biblio_ref_entry_code(ordinal, _idents, _ids, _standard, _datefn,
def middle_title(docxml); end

def preface_rearrange(doc)
preface_move(doc.at(ns("//preface/abstract")),
preface_move(doc.xpath(ns("//preface/abstract")),
%w(foreword executivesummary introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/foreword")),
preface_move(doc.xpath(ns("//preface/foreword")),
%w(executivesummary introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/executivesummary")),
preface_move(doc.xpath(ns("//preface/executivesummary")),
%w(introduction clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/introduction")),
preface_move(doc.xpath(ns("//preface/introduction")),
%w(clause acknowledgements), doc)
preface_move(doc.at(ns("//preface/acknowledgements")),
preface_move(doc.xpath(ns("//preface/acknowledgements")),
%w(), doc)
end

Expand Down

0 comments on commit db4fc1d

Please sign in to comment.