metanorma-standoc 1.9.4 → 1.10.3
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 +4 -4
- data/.github/workflows/rake.yml +1 -1
- data/.rubocop.yml +1 -1
- data/lib/asciidoctor/standoc/base.rb +0 -1
- data/lib/asciidoctor/standoc/blocks.rb +1 -1
- data/lib/asciidoctor/standoc/cleanup.rb +61 -2
- data/lib/asciidoctor/standoc/cleanup_block.rb +0 -1
- data/lib/asciidoctor/standoc/cleanup_boilerplate.rb +2 -2
- data/lib/asciidoctor/standoc/cleanup_footnotes.rb +0 -1
- data/lib/asciidoctor/standoc/cleanup_inline.rb +117 -77
- data/lib/asciidoctor/standoc/cleanup_maths.rb +0 -1
- data/lib/asciidoctor/standoc/cleanup_ref.rb +7 -0
- data/lib/asciidoctor/standoc/cleanup_section.rb +0 -1
- data/lib/asciidoctor/standoc/cleanup_terms.rb +19 -18
- data/lib/asciidoctor/standoc/converter.rb +3 -0
- data/lib/asciidoctor/standoc/datamodel/diagram_preprocessor.rb +22 -21
- data/lib/asciidoctor/standoc/front.rb +0 -1
- data/lib/asciidoctor/standoc/front_contributor.rb +0 -1
- data/lib/asciidoctor/standoc/inline.rb +20 -17
- data/lib/asciidoctor/standoc/isodoc.rng +56 -8
- data/lib/asciidoctor/standoc/macros.rb +25 -5
- data/lib/asciidoctor/standoc/macros_plantuml.rb +21 -23
- data/lib/asciidoctor/standoc/macros_terms.rb +60 -23
- data/lib/asciidoctor/standoc/ref.rb +60 -56
- data/lib/asciidoctor/standoc/section.rb +19 -12
- data/lib/asciidoctor/standoc/term_lookup_cleanup.rb +69 -30
- data/lib/asciidoctor/standoc/terms.rb +1 -1
- data/lib/asciidoctor/standoc/utils.rb +0 -1
- data/lib/asciidoctor/standoc/validate.rb +22 -8
- data/lib/isodoc/html/html_titlepage.html +81 -0
- data/lib/isodoc/html/htmlstyle.css +983 -0
- data/lib/isodoc/html/htmlstyle.scss +714 -0
- data/lib/isodoc/html/scripts.html +71 -0
- data/lib/metanorma/standoc/processor.rb +16 -7
- data/lib/metanorma/standoc/version.rb +1 -1
- data/metanorma-standoc.gemspec +3 -3
- data/spec/asciidoctor/blocks_spec.rb +8 -8
- data/spec/asciidoctor/cleanup_sections_spec.rb +899 -864
- data/spec/asciidoctor/cleanup_spec.rb +85 -20
- data/spec/asciidoctor/isobib_cache_spec.rb +4 -6
- data/spec/asciidoctor/lists_spec.rb +147 -135
- data/spec/asciidoctor/macros_json2text_spec.rb +1 -1
- data/spec/asciidoctor/macros_plantuml_spec.rb +165 -104
- data/spec/asciidoctor/macros_spec.rb +813 -168
- data/spec/asciidoctor/refs_spec.rb +12 -12
- data/spec/asciidoctor/validate_spec.rb +76 -20
- data/spec/support/shared_examples/structured_data_2_text_preprocessor.rb +34 -34
- data/spec/vcr_cassettes/dated_iso_ref_joint_iso_iec.yml +50 -50
- data/spec/vcr_cassettes/isobib_get_123.yml +13 -13
- data/spec/vcr_cassettes/isobib_get_123_1.yml +26 -26
- data/spec/vcr_cassettes/isobib_get_123_1_fr.yml +34 -34
- data/spec/vcr_cassettes/isobib_get_123_2001.yml +14 -14
- data/spec/vcr_cassettes/isobib_get_124.yml +11 -11
- data/spec/vcr_cassettes/rfcbib_get_rfc8341.yml +14 -14
- data/spec/vcr_cassettes/separates_iev_citations_by_top_level_clause.yml +51 -61
- metadata +11 -7
@@ -264,7 +264,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
264
264
|
<script>Latn</script>
|
265
265
|
<status>
|
266
266
|
<stage>90</stage>
|
267
|
-
<substage>
|
267
|
+
<substage>93</substage>
|
268
268
|
</status>
|
269
269
|
<copyright>
|
270
270
|
<from>2001</from>
|
@@ -289,7 +289,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
289
289
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
290
290
|
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
291
291
|
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
292
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.
|
292
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
|
293
293
|
<docnumber>123</docnumber>
|
294
294
|
<date type='published'>
|
295
295
|
<on>2001-05</on>
|
@@ -314,7 +314,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
314
314
|
</abstract>
|
315
315
|
<status>
|
316
316
|
<stage>90</stage>
|
317
|
-
<substage>
|
317
|
+
<substage>93</substage>
|
318
318
|
</status>
|
319
319
|
<copyright>
|
320
320
|
<from>2001</from>
|
@@ -372,7 +372,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
372
372
|
<script>Latn</script>
|
373
373
|
<status>
|
374
374
|
<stage>90</stage>
|
375
|
-
<substage>
|
375
|
+
<substage>93</substage>
|
376
376
|
</status>
|
377
377
|
<copyright>
|
378
378
|
<from>2001</from>
|
@@ -397,7 +397,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
397
397
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
398
398
|
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
399
399
|
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
400
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.
|
400
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:en</docidentifier>
|
401
401
|
<docnumber>123</docnumber>
|
402
402
|
<date type='published'>
|
403
403
|
<on>2001-05</on>
|
@@ -422,7 +422,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
422
422
|
</abstract>
|
423
423
|
<status>
|
424
424
|
<stage>90</stage>
|
425
|
-
<substage>
|
425
|
+
<substage>93</substage>
|
426
426
|
</status>
|
427
427
|
<copyright>
|
428
428
|
<from>2001</from>
|
@@ -516,7 +516,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
516
516
|
<script>Latn</script>
|
517
517
|
<status>
|
518
518
|
<stage>90</stage>
|
519
|
-
<substage>
|
519
|
+
<substage>93</substage>
|
520
520
|
</status>
|
521
521
|
<copyright>
|
522
522
|
<from>2001</from>
|
@@ -541,7 +541,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
541
541
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
542
542
|
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
543
543
|
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
544
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.
|
544
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
|
545
545
|
<docnumber>123</docnumber>
|
546
546
|
<date type='published'>
|
547
547
|
<on>2001-05</on>
|
@@ -569,7 +569,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
569
569
|
</abstract>
|
570
570
|
<status>
|
571
571
|
<stage>90</stage>
|
572
|
-
<substage>
|
572
|
+
<substage>93</substage>
|
573
573
|
</status>
|
574
574
|
<copyright>
|
575
575
|
<from>2001</from>
|
@@ -628,7 +628,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
628
628
|
<script>Latn</script>
|
629
629
|
<status>
|
630
630
|
<stage>90</stage>
|
631
|
-
<substage>
|
631
|
+
<substage>93</substage>
|
632
632
|
</status>
|
633
633
|
<copyright>
|
634
634
|
<from>2001</from>
|
@@ -653,7 +653,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
653
653
|
<uri type='obp'>https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>
|
654
654
|
<uri type='rss'>https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>
|
655
655
|
<docidentifier type='ISO'>ISO 123:2001</docidentifier>
|
656
|
-
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.
|
656
|
+
<docidentifier type='URN'>urn:iso:std:iso:123:stage-90.93:ed-3:fr</docidentifier>
|
657
657
|
<docnumber>123</docnumber>
|
658
658
|
<date type='published'>
|
659
659
|
<on>2001-05</on>
|
@@ -681,7 +681,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
681
681
|
</abstract>
|
682
682
|
<status>
|
683
683
|
<stage>90</stage>
|
684
|
-
<substage>
|
684
|
+
<substage>93</substage>
|
685
685
|
</status>
|
686
686
|
<copyright>
|
687
687
|
<from>2001</from>
|
@@ -5,7 +5,11 @@ require "fileutils"
|
|
5
5
|
RSpec.describe Asciidoctor::Standoc do
|
6
6
|
it "generates error file" do
|
7
7
|
FileUtils.rm_f "spec/assets/xref_error.err"
|
8
|
-
Asciidoctor.convert_file "spec/assets/xref_error.adoc",
|
8
|
+
Asciidoctor.convert_file "spec/assets/xref_error.adoc",
|
9
|
+
{ attributes: { "backend" => "standoc" }, safe: 0,
|
10
|
+
header_footer: true,
|
11
|
+
requires: ["metanorma-standoc"],
|
12
|
+
failure_level: 4, mkdirs: true, to_file: nil }
|
9
13
|
expect(File.exist?("spec/assets/xref_error.err")).to be true
|
10
14
|
end
|
11
15
|
|
@@ -13,7 +17,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
13
17
|
FileUtils.rm_f "test.xml"
|
14
18
|
FileUtils.rm_f "test.err"
|
15
19
|
begin
|
16
|
-
|
20
|
+
input = <<~INPUT
|
17
21
|
= Document title
|
18
22
|
Author
|
19
23
|
:docfile: test.adoc
|
@@ -25,10 +29,13 @@ RSpec.describe Asciidoctor::Standoc do
|
|
25
29
|
[[abc]]
|
26
30
|
== Clause 2
|
27
31
|
INPUT
|
32
|
+
expect { Asciidoctor.convert(input, *OPTIONS) }.to raise_error(SystemExit)
|
28
33
|
rescue SystemExit
|
29
34
|
end
|
30
|
-
expect(File.read("test.err"))
|
31
|
-
|
35
|
+
expect(File.read("test.err"))
|
36
|
+
.to include "Anchor abc has already been used at line"
|
37
|
+
expect(File.read("test.err"))
|
38
|
+
.to include %(\t<clause id="abc" inline-header="false" obligation="normative">)
|
32
39
|
end
|
33
40
|
|
34
41
|
it "warns about missing fields in asciibib" do
|
@@ -64,7 +71,8 @@ RSpec.describe Asciidoctor::Standoc do
|
|
64
71
|
completename::::: Jack
|
65
72
|
INPUT
|
66
73
|
errf = File.read("test.err")
|
67
|
-
expect(errf)
|
74
|
+
expect(errf)
|
75
|
+
.to include "Reference iso123 is missing a document identifier (docid)"
|
68
76
|
end
|
69
77
|
|
70
78
|
it "warns about missing fields in asciibib" do
|
@@ -189,7 +197,8 @@ RSpec.describe Asciidoctor::Standoc do
|
|
189
197
|
<1> This is one callout
|
190
198
|
<2> This is another callout
|
191
199
|
INPUT
|
192
|
-
expect(File.read("test.err"))
|
200
|
+
expect(File.read("test.err"))
|
201
|
+
.to include "mismatch of callouts and annotations"
|
193
202
|
end
|
194
203
|
|
195
204
|
it "warns that term source is not a real reference" do
|
@@ -200,7 +209,8 @@ RSpec.describe Asciidoctor::Standoc do
|
|
200
209
|
[.source]
|
201
210
|
<<iso123>>
|
202
211
|
INPUT
|
203
|
-
expect(File.read("test.err"))
|
212
|
+
expect(File.read("test.err"))
|
213
|
+
.to include "iso123 does not have a corresponding anchor ID in the bibliography"
|
204
214
|
end
|
205
215
|
|
206
216
|
it "warns of Non-reference in bibliography" do
|
@@ -234,12 +244,14 @@ RSpec.describe Asciidoctor::Standoc do
|
|
234
244
|
[align=mid-air]
|
235
245
|
Para
|
236
246
|
INPUT
|
237
|
-
expect(File.read("test.err"))
|
247
|
+
expect(File.read("test.err"))
|
248
|
+
.to include 'value of attribute "align" is invalid; must be equal to'
|
238
249
|
end
|
239
250
|
|
240
251
|
it "Warning if terms mismatches IEV" do
|
241
252
|
FileUtils.rm_f "test.err"
|
242
|
-
FileUtils.mv File.expand_path("~/.iev/cache"),
|
253
|
+
FileUtils.mv File.expand_path("~/.iev/cache"),
|
254
|
+
File.expand_path("~/.iev.pstore1"), force: true
|
243
255
|
FileUtils.rm_f "test_iev/pstore"
|
244
256
|
mock_open_uri("103-01-02")
|
245
257
|
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
|
@@ -257,13 +269,16 @@ RSpec.describe Asciidoctor::Standoc do
|
|
257
269
|
[.source]
|
258
270
|
<<iev,clause="103-01-02">>
|
259
271
|
INPUT
|
260
|
-
expect(File.read("test.err"))
|
261
|
-
|
272
|
+
expect(File.read("test.err"))
|
273
|
+
.to include 'Term "automation" does not match IEV 103-01-02 "functional"'
|
274
|
+
FileUtils.mv File.expand_path("~/.iev.pstore1"),
|
275
|
+
File.expand_path("~/.iev/cache"), force: true
|
262
276
|
end
|
263
277
|
|
264
278
|
it "No warning if English term matches IEV" do
|
265
279
|
FileUtils.rm_f "test.err"
|
266
|
-
FileUtils.mv File.expand_path("~/.iev/cache"),
|
280
|
+
FileUtils.mv File.expand_path("~/.iev/cache"),
|
281
|
+
File.expand_path("~/.iev.pstore1"), force: true
|
267
282
|
FileUtils.rm_f "test_iev/cache"
|
268
283
|
mock_open_uri("103-01-02")
|
269
284
|
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
|
@@ -282,12 +297,14 @@ RSpec.describe Asciidoctor::Standoc do
|
|
282
297
|
<<iev,clause="103-01-02">>
|
283
298
|
INPUT
|
284
299
|
expect(File.read("test.err")).not_to include "does not match IEV 103-01-02"
|
285
|
-
FileUtils.mv File.expand_path("~/.iev.pstore1"),
|
300
|
+
FileUtils.mv File.expand_path("~/.iev.pstore1"),
|
301
|
+
File.expand_path("~/.iev/cache"), force: true
|
286
302
|
end
|
287
303
|
|
288
304
|
it "No warning if French term matches IEV" do
|
289
305
|
FileUtils.rm_f "test.err"
|
290
|
-
FileUtils.mv File.expand_path("~/.iev/cache"),
|
306
|
+
FileUtils.mv File.expand_path("~/.iev/cache"),
|
307
|
+
File.expand_path("~/.iev.pstore1"), force: true
|
291
308
|
FileUtils.rm_f "test_iev/cache"
|
292
309
|
mock_open_uri("103-01-02")
|
293
310
|
Asciidoctor.convert(<<~"INPUT", *OPTIONS)
|
@@ -307,7 +324,8 @@ RSpec.describe Asciidoctor::Standoc do
|
|
307
324
|
[.source]
|
308
325
|
<<iev,clause="103-01-02">>
|
309
326
|
INPUT
|
310
|
-
expect(File.read("test.err"))
|
327
|
+
expect(File.read("test.err"))
|
328
|
+
.not_to include "does not match IEV 103-01-02"
|
311
329
|
FileUtils.mv File.expand_path("~/.iev.pstore1"), File.expand_path("~/.iev/cache"), force: true
|
312
330
|
end
|
313
331
|
|
@@ -319,11 +337,44 @@ RSpec.describe Asciidoctor::Standoc do
|
|
319
337
|
# INPUT
|
320
338
|
# end
|
321
339
|
|
340
|
+
it "warns and aborts if concept/xref does not point to term or definition" do
|
341
|
+
FileUtils.rm_f "test.xml"
|
342
|
+
FileUtils.rm_f "test.err"
|
343
|
+
begin
|
344
|
+
input = <<~INPUT
|
345
|
+
= Document title
|
346
|
+
Author
|
347
|
+
:docfile: test.adoc
|
348
|
+
:nodoc:
|
349
|
+
|
350
|
+
[[abc]]
|
351
|
+
== Clause 1
|
352
|
+
[[ghi]]A:: B
|
353
|
+
|
354
|
+
== Symbols and Abbreviated Terms
|
355
|
+
[[def]]DEF:: def
|
356
|
+
|
357
|
+
{{<<abc>>,term}}
|
358
|
+
{{<<def>>,term}}
|
359
|
+
{{<<ghi>>,term}}
|
360
|
+
INPUT
|
361
|
+
expect { Asciidoctor.convert(input, *OPTIONS) }.to raise_error(SystemExit)
|
362
|
+
rescue SystemExit
|
363
|
+
end
|
364
|
+
expect(File.read("test.err"))
|
365
|
+
.to include "Concept term is pointing to abc, which is not a term or symbol"
|
366
|
+
expect(File.read("test.err"))
|
367
|
+
.not_to include "Concept term is pointing to def, which is not a term or symbol"
|
368
|
+
expect(File.read("test.err"))
|
369
|
+
.to include "Concept term is pointing to ghi, which is not a term or symbol"
|
370
|
+
expect(File.exist?("test.xml")).to be false
|
371
|
+
end
|
372
|
+
|
322
373
|
it "warns and aborts if id used twice" do
|
323
374
|
FileUtils.rm_f "test.xml"
|
324
375
|
FileUtils.rm_f "test.err"
|
325
376
|
begin
|
326
|
-
|
377
|
+
input = <<~INPUT
|
327
378
|
= Document title
|
328
379
|
Author
|
329
380
|
:docfile: test.adoc
|
@@ -335,9 +386,11 @@ RSpec.describe Asciidoctor::Standoc do
|
|
335
386
|
[[abc]]
|
336
387
|
== Clause 2
|
337
388
|
INPUT
|
389
|
+
expect { Asciidoctor.convert(input, *OPTIONS) }.to raise_error(SystemExit)
|
338
390
|
rescue SystemExit
|
339
391
|
end
|
340
|
-
expect(File.read("test.err"))
|
392
|
+
expect(File.read("test.err"))
|
393
|
+
.to include "Anchor abc has already been used at line"
|
341
394
|
expect(File.exist?("test.xml")).to be false
|
342
395
|
end
|
343
396
|
|
@@ -345,7 +398,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
345
398
|
FileUtils.rm_f "test.xml"
|
346
399
|
FileUtils.rm_f "test.err"
|
347
400
|
begin
|
348
|
-
|
401
|
+
input = <<~INPUT
|
349
402
|
= Document title
|
350
403
|
Author
|
351
404
|
:docfile: test.adoc
|
@@ -355,9 +408,11 @@ RSpec.describe Asciidoctor::Standoc do
|
|
355
408
|
== Normative references
|
356
409
|
* [[[A,1]]]
|
357
410
|
INPUT
|
411
|
+
expect { Asciidoctor.convert(input, *OPTIONS) }.to raise_error(SystemExit)
|
358
412
|
rescue SystemExit
|
359
413
|
end
|
360
|
-
expect(File.read("test.err"))
|
414
|
+
expect(File.read("test.err"))
|
415
|
+
.to include "Numeric reference in normative references"
|
361
416
|
expect(File.exist?("test.xml")).to be false
|
362
417
|
end
|
363
418
|
|
@@ -405,6 +460,7 @@ RSpec.describe Asciidoctor::Standoc do
|
|
405
460
|
* C
|
406
461
|
--
|
407
462
|
INPUT
|
408
|
-
expect(File.read("test.err"))
|
463
|
+
expect(File.read("test.err"))
|
464
|
+
.to include "Could not resolve footnoteblock:[id1]"
|
409
465
|
end
|
410
466
|
end
|
@@ -59,9 +59,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
59
59
|
strip_guid(
|
60
60
|
Asciidoctor.convert(input,
|
61
61
|
backend: :standoc,
|
62
|
-
header_footer: true)
|
63
|
-
)
|
64
|
-
)
|
62
|
+
header_footer: true),
|
63
|
+
),
|
64
|
+
),
|
65
65
|
).to(be_equivalent_to(xmlpp(output)))
|
66
66
|
end
|
67
67
|
end
|
@@ -118,9 +118,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
118
118
|
strip_guid(
|
119
119
|
Asciidoctor.convert(input,
|
120
120
|
backend: :standoc,
|
121
|
-
header_footer: true)
|
122
|
-
)
|
123
|
-
)
|
121
|
+
header_footer: true),
|
122
|
+
),
|
123
|
+
),
|
124
124
|
).to(be_equivalent_to(xmlpp(output)))
|
125
125
|
end
|
126
126
|
end
|
@@ -166,9 +166,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
166
166
|
strip_guid(
|
167
167
|
Asciidoctor.convert(input,
|
168
168
|
backend: :standoc,
|
169
|
-
header_footer: true)
|
170
|
-
)
|
171
|
-
)
|
169
|
+
header_footer: true),
|
170
|
+
),
|
171
|
+
),
|
172
172
|
).to(be_equivalent_to(xmlpp(output)))
|
173
173
|
end
|
174
174
|
end
|
@@ -221,9 +221,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
221
221
|
strip_guid(
|
222
222
|
Asciidoctor.convert(input,
|
223
223
|
backend: :standoc,
|
224
|
-
header_footer: true)
|
225
|
-
)
|
226
|
-
)
|
224
|
+
header_footer: true),
|
225
|
+
),
|
226
|
+
),
|
227
227
|
).to(be_equivalent_to(xmlpp(output)))
|
228
228
|
end
|
229
229
|
end
|
@@ -303,9 +303,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
303
303
|
strip_guid(
|
304
304
|
Asciidoctor.convert(input,
|
305
305
|
backend: :standoc,
|
306
|
-
header_footer: true)
|
307
|
-
)
|
308
|
-
)
|
306
|
+
header_footer: true),
|
307
|
+
),
|
308
|
+
),
|
309
309
|
).to(be_equivalent_to(xmlpp(output)))
|
310
310
|
end
|
311
311
|
end
|
@@ -375,9 +375,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
375
375
|
strip_guid(
|
376
376
|
Asciidoctor.convert(input,
|
377
377
|
backend: :standoc,
|
378
|
-
header_footer: true)
|
379
|
-
)
|
380
|
-
)
|
378
|
+
header_footer: true),
|
379
|
+
),
|
380
|
+
),
|
381
381
|
).to(be_equivalent_to(xmlpp(output)))
|
382
382
|
end
|
383
383
|
end
|
@@ -385,7 +385,7 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
385
385
|
context "Array of language codes" do
|
386
386
|
let(:example_content) do
|
387
387
|
YAML.safe_load(
|
388
|
-
File.read(File.expand_path("../../assets/codes.yml", __dir__))
|
388
|
+
File.read(File.expand_path("../../assets/codes.yml", __dir__)),
|
389
389
|
)
|
390
390
|
end
|
391
391
|
let(:input) do
|
@@ -429,9 +429,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
429
429
|
strip_guid(
|
430
430
|
Asciidoctor.convert(input,
|
431
431
|
backend: :standoc,
|
432
|
-
header_footer: true)
|
433
|
-
)
|
434
|
-
)
|
432
|
+
header_footer: true),
|
433
|
+
),
|
434
|
+
),
|
435
435
|
).to(be_equivalent_to(xmlpp(output)))
|
436
436
|
end
|
437
437
|
end
|
@@ -525,9 +525,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
525
525
|
strip_guid(
|
526
526
|
Asciidoctor.convert(input,
|
527
527
|
backend: :standoc,
|
528
|
-
header_footer: true)
|
529
|
-
)
|
530
|
-
)
|
528
|
+
header_footer: true),
|
529
|
+
),
|
530
|
+
),
|
531
531
|
).to(be_equivalent_to(xmlpp(output)))
|
532
532
|
end
|
533
533
|
end
|
@@ -576,9 +576,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
576
576
|
strip_guid(
|
577
577
|
Asciidoctor.convert(input,
|
578
578
|
backend: :standoc,
|
579
|
-
header_footer: true)
|
580
|
-
)
|
581
|
-
)
|
579
|
+
header_footer: true),
|
580
|
+
),
|
581
|
+
),
|
582
582
|
).to(be_equivalent_to(xmlpp(output)))
|
583
583
|
end
|
584
584
|
end
|
@@ -625,9 +625,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
625
625
|
strip_guid(
|
626
626
|
Asciidoctor.convert(input,
|
627
627
|
backend: :standoc,
|
628
|
-
header_footer: true)
|
629
|
-
)
|
630
|
-
)
|
628
|
+
header_footer: true),
|
629
|
+
),
|
630
|
+
),
|
631
631
|
).to(be_equivalent_to(xmlpp(output)))
|
632
632
|
end
|
633
633
|
end
|
@@ -771,9 +771,9 @@ RSpec.shared_examples "structured data 2 text preprocessor" do
|
|
771
771
|
strip_guid(
|
772
772
|
Asciidoctor.convert(input,
|
773
773
|
backend: :standoc,
|
774
|
-
header_footer: true)
|
775
|
-
)
|
776
|
-
)
|
774
|
+
header_footer: true),
|
775
|
+
),
|
776
|
+
),
|
777
777
|
).to(be_equivalent_to(xmlpp(output)))
|
778
778
|
end
|
779
779
|
end
|