Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Sep 16, 2024
1 parent accc201 commit 8eee838
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions lib/isodoc/presentation_function/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ def floattitle(docxml)
p = "//clause | //annex | //appendix | //introduction | //foreword | " \
"//preface/abstract | //acknowledgements | //terms | " \
"//definitions | //references | //colophon | //indexsect"
docxml.xpath(ns(p)).each do |f|
floattitle1(f)
end
docxml.xpath(ns(p)).each { |f| floattitle1(f) }
# top-level
docxml.xpath(ns("//sections | //preface | //colophon"))
.each { |f| floattitle1(f) }
end

# TODO not currently doing anything with the @depth attribute of floating-title
def floattitle1(elem)
elem.xpath(ns(".//floating-title")).each do |p|
p.name = "p"
Expand Down Expand Up @@ -192,7 +191,6 @@ def preface_move1(clause, preface, float, prev, xpath)
preface.elements.each do |x|
((x.name == "floating-title" || x.at(xpath)) &&
xpath != "./self::*[not(following-sibling::*)]") or prev = x
# after.include?(x.name) or next
x.at(xpath) or next
clause == prev and break
prev ||= preface.children.first
Expand Down Expand Up @@ -245,7 +243,6 @@ def toc(docxml)
def toc_refs(docxml)
docxml.xpath(ns("//toc//xref[text()]")).each do |x|
lbl = @xrefs.anchor(x["target"], :label) or next
#x.children.first.previous = "#{lbl}<tab/>"
x.add_first_child "#{lbl}<tab/>"
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/isodoc/presentation_function/terms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def designation(docxml)
end

def deprecates(elem)
#elem.children.first.previous = @i18n.l10n("#{@i18n.deprecated}: ")
elem.add_first_child @i18n.l10n("#{@i18n.deprecated}: ")
end

Expand Down
2 changes: 1 addition & 1 deletion lib/isodoc/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IsoDoc
VERSION = "2.11.2".freeze
VERSION = "2.11.3".freeze
end

0 comments on commit 8eee838

Please sign in to comment.