metanorma-plugin-lutaml 0.7.74 → 0.7.76
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: ac767ca13e42278a97a80952fc74ea4e3e74e67bf6dcb4e47bb354a3a151f1ef
|
|
4
|
+
data.tar.gz: f9258d42298a1b87eee4354f23b5204147ea288ce47c50d332de9a52119aecba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ae26c5b0818537180037a39e3b40c86565cd6de4be6b802a14019563dc67d5a7789a5974e93efe46ef47f456b72e1b7d3656dd0ab25355b2b965b3527b4aa4a
|
|
7
|
+
data.tar.gz: e78fab52229c84d01d70e4bd9a1439800c674cab28995119ed4170cb45343c3c536b20a3d20532a6cd7dba760c2babaf2c02e72e91439a9a50f753ead443733e
|
|
@@ -121,6 +121,21 @@ module Metanorma
|
|
|
121
121
|
@object.remarks
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
|
+
|
|
125
|
+
# The bare rendering surface. Liquid stringifies a rendered drop
|
|
126
|
+
# through to_s, and Liquid::Drop#to_s is the drop's CLASS NAME,
|
|
127
|
+
# so every remark_items loop that prints the item verbatim
|
|
128
|
+
# ("{{ remark }}") printed the object dump instead of the remark
|
|
129
|
+
# text (issue #369). The text is the figure-resolved remarks --
|
|
130
|
+
# the same values the drop-facing `remarks` accessor returns,
|
|
131
|
+
# joined the way expressir's remark formatter joins them --
|
|
132
|
+
# while the model-level methods keep the source listing
|
|
133
|
+
# printing the macros as written.
|
|
134
|
+
def to_s
|
|
135
|
+
remarks.join("\n")
|
|
136
|
+
.gsub(/^[ \t]+(?=image::)/, "")
|
|
137
|
+
.gsub(/^(?!$)(image::)/) { "\n\n#{Regexp.last_match(1)}" }
|
|
138
|
+
end
|
|
124
139
|
end
|
|
125
140
|
|
|
126
141
|
# Composes the drop-facing remark text for one decorated schema.
|