metanorma-iec 1.0.7 → 1.0.8

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.
@@ -307,6 +307,43 @@ OUTPUT
307
307
  OUTPUT
308
308
  end
309
309
 
310
+ it "processes subclauses with and without titles" do
311
+ expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
312
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
313
+ <sections>
314
+ <clause id="D" obligation="normative">
315
+ <title>Scope</title>
316
+ <clause id="D1" obligation="normative">
317
+ <title>Scope 1</title>
318
+ </clause>
319
+ <clause id="D2" obligation="normative">
320
+ </clause>
321
+ </clause>
322
+ </sections>
323
+ </iso-standard>
324
+ INPUT
325
+ #{HTML_HDR}
326
+ <div id=''>
327
+ <h1 class='ForewordTitle'>FOREWORD</h1>
328
+ <div class='boilerplate_legal'/>
329
+ </div>
330
+ #{IEC_TITLE}
331
+ <div id='D'>
332
+ <h1>1&#160; Scope</h1>
333
+ <div id='D1'>
334
+ <h2>1.1&#160; Scope 1</h2>
335
+ </div>
336
+ <div id='D2'>
337
+ <h2>1.2&#160; </h2>
338
+ </div>
339
+ </div>
340
+ </div>
341
+ </body>
342
+ </html>
343
+ OUTPUT
344
+ end
345
+
346
+
310
347
  it "processes simple terms & definitions" do
311
348
  expect(xmlpp(IsoDoc::Iec::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
312
349
  <iso-standard xmlns="http://riboseinc.com/isoxml">
@@ -361,7 +398,7 @@ OUTPUT
361
398
  <h2>1.1&#160; Introduction</h2>
362
399
  </div>
363
400
  <div id="O">
364
- <span class="zzMoveToFollowing"><b>1.2&#160; Clause 4.2 </b></span>
401
+ <span class="zzMoveToFollowing"><b>1.2&#160; Clause 4.2&#160; </b></span>
365
402
  </div>
366
403
  </div>
367
404
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-26 00:00:00.000000000 Z
11
+ date: 2020-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-jing
@@ -273,12 +273,14 @@ files:
273
273
  - spec/examples/rice_img/rice_image3_1.png
274
274
  - spec/examples/rice_img/rice_image3_2.png
275
275
  - spec/examples/rice_img/rice_image3_3.png
276
+ - spec/isodoc/blocks_spec.rb
276
277
  - spec/isodoc/i18n_spec.rb
277
278
  - spec/isodoc/iev_spec.rb
278
279
  - spec/isodoc/inline_spec.rb
279
280
  - spec/isodoc/iso_spec.rb
280
281
  - spec/isodoc/metadata_spec.rb
281
282
  - spec/isodoc/postproc_spec.rb
283
+ - spec/isodoc/ref_spec.rb
282
284
  - spec/isodoc/section_spec.rb
283
285
  - spec/isodoc/terms_spec.rb
284
286
  - spec/metanorma/processor_spec.rb