metanorma-plugin-lutaml 0.7.41 → 0.7.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '090664ea7c31be00f6d17fc5e0a801f007fcc0452526ad986b3f76ba79221626'
|
|
4
|
+
data.tar.gz: '05092a175d477d779069be695af9d104bc019aefb9bae6435144fe6c8c0aa8e0'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f553988cc189f16d244201052e3513203cd3c1198a980f23dcd41c27a9d446fc6eee36212040b437df8c9ab4027246778f16a6be22bba0daa3ea69904cc1e8d
|
|
7
|
+
data.tar.gz: f68b535121d0b65188aaebb85c7fd95af9aab1fc061c9fe4c024c35bd85338b79f56a310fcb29e08752132996bf2c7e7e4086b96b512a41dfac6466d43e6ab99
|
|
@@ -86,17 +86,28 @@ module Metanorma
|
|
|
86
86
|
|
|
87
87
|
def update_remarks(model, options)
|
|
88
88
|
model.remarks = decorate_remarks(options, model.remarks)
|
|
89
|
-
model
|
|
90
|
-
ri.remarks = decorate_remarks(options, ri.remarks)
|
|
91
|
-
end
|
|
89
|
+
decorate_remark_items(model, options)
|
|
92
90
|
|
|
93
91
|
model.children.each do |child|
|
|
94
|
-
next unless
|
|
92
|
+
next unless traversable_model_element?(child)
|
|
95
93
|
|
|
96
94
|
update_remarks(child, options)
|
|
97
95
|
end
|
|
98
96
|
end
|
|
99
97
|
|
|
98
|
+
def traversable_model_element?(child)
|
|
99
|
+
child.is_a?(Expressir::Model::ModelElement) &&
|
|
100
|
+
!child.is_a?(Expressir::Model::Declarations::RemarkItem)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def decorate_remark_items(model, options)
|
|
104
|
+
return unless model.is_a?(Expressir::Model::HasRemarkItems)
|
|
105
|
+
|
|
106
|
+
model.remark_items&.each do |ri|
|
|
107
|
+
ri.remarks = decorate_remarks(options, ri.remarks)
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
100
111
|
def relative_path_prefix(options, model)
|
|
101
112
|
return if options.nil? || options["document"].nil?
|
|
102
113
|
|