diff --git a/Gemfile.lock b/Gemfile.lock index f5c2e10..766dbad 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,11 +8,7 @@ PATH GEM remote: https://rubygems.org/ specs: - mini_portile2 (2.8.7) minitest (5.20.0) - nokogiri (1.16.5) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) nokogiri (1.16.5-arm64-darwin) racc (~> 1.4) ostruct (0.6.0) diff --git a/lib/sablon/content.rb b/lib/sablon/content.rb index 74dacab..8c11a29 100644 --- a/lib/sablon/content.rb +++ b/lib/sablon/content.rb @@ -124,6 +124,7 @@ def get_merge_fields(node) inside_field = false if field.children.any? { |child| child.name == 'fldChar' && child['w:fldCharType'] == 'end' } end end + merge_fields end # This allows proper equality checks with other WordML content objects.