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: 2f86981d696afc6cc0a4f7650942a9938f3ed13224f673dee6298764b83073f6
4
- data.tar.gz: 867e0fe46d6c586a4328eed740b6bc25b6d002943843e6f2d6115615463b20df
3
+ metadata.gz: ac767ca13e42278a97a80952fc74ea4e3e74e67bf6dcb4e47bb354a3a151f1ef
4
+ data.tar.gz: f9258d42298a1b87eee4354f23b5204147ea288ce47c50d332de9a52119aecba
5
5
  SHA512:
6
- metadata.gz: 8efaef9b369242fd98aa5ca355b99ced2b3859776ee747b9e5b7ac2951073a106f1b30b40ea7b2e892027eb155049a0d17cb30ee9217f94aafde87f4c95b419a
7
- data.tar.gz: 27d409bac16af7b9a4a05d2a2c2ab9bfc5346e09405bf0f4bcd27c5a6b0e2b1642c7969909db8d096fc34f2a287801a20458d8fa54db168751fc6fc282dd6cf7
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.
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.74".freeze
4
+ VERSION = "0.7.76".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.74
4
+ version: 0.7.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.