isodoc 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "processes IsoXML bibliographies" do
5
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
5
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <bibdata>
8
8
  <language>en</language>
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "processes document with no content" do
5
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
5
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <preface/>
8
8
  <sections/>
@@ -28,7 +28,7 @@ RSpec.describe IsoDoc do
28
28
  end
29
29
 
30
30
  it "processes section names" do
31
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
31
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
32
32
  <iso-standard xmlns="http://riboseinc.com/isoxml">
33
33
  <preface>
34
34
  <abstract obligation="informative">
@@ -179,7 +179,7 @@ OUTPUT
179
179
  end
180
180
 
181
181
  it "processes section names (Word)" do
182
- expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
182
+ expect(xmlpp(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
183
183
  <iso-standard xmlns="http://riboseinc.com/isoxml">
184
184
  <preface>
185
185
  <abstract obligation="informative">
@@ -338,7 +338,7 @@ OUTPUT
338
338
  end
339
339
 
340
340
  it "processes section names suppressing section numbering" do
341
- expect(IsoDoc::HtmlConvert.new({suppressheadingnumbers: true}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
341
+ expect(xmlpp(IsoDoc::HtmlConvert.new({suppressheadingnumbers: true}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
342
342
  <iso-standard xmlns="http://riboseinc.com/isoxml">
343
343
  <preface>
344
344
  <foreword obligation="informative">
@@ -476,7 +476,7 @@ OUTPUT
476
476
  end
477
477
 
478
478
  it "processes simple terms & definitions" do
479
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
479
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
480
480
  <iso-standard xmlns="http://riboseinc.com/isoxml">
481
481
  <sections>
482
482
  <terms id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
@@ -501,7 +501,7 @@ OUTPUT
501
501
 
502
502
 
503
503
  it "processes inline section headers" do
504
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
504
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
505
505
  <iso-standard xmlns="http://riboseinc.com/isoxml">
506
506
  <sections>
507
507
  <clause id="M" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
@@ -532,7 +532,7 @@ OUTPUT
532
532
  end
533
533
 
534
534
  it "processes inline section headers with suppressed heading numbering" do
535
- expect(IsoDoc::HtmlConvert.new({suppressheadingnumbers: true}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
535
+ expect(xmlpp(IsoDoc::HtmlConvert.new({suppressheadingnumbers: true}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
536
536
  <iso-standard xmlns="http://riboseinc.com/isoxml">
537
537
  <sections>
538
538
  <clause id="M" inline-header="false" obligation="normative"><title>Clause 4</title><clause id="N" inline-header="false" obligation="normative">
@@ -563,7 +563,7 @@ OUTPUT
563
563
  end
564
564
 
565
565
  it "processes sections without titles" do
566
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
566
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
567
567
  <iso-standard xmlns="http://riboseinc.com/isoxml">
568
568
  <preface>
569
569
  <introduction id="M" inline-header="false" obligation="normative"><clause id="N" inline-header="false" obligation="normative">
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "processes IsoXML tables" do
5
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
5
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <preface>
8
8
  <foreword>
@@ -26,7 +26,7 @@ RSpec.describe IsoDoc do
26
26
  </thead>
27
27
  <tbody>
28
28
  <tr>
29
- <th align="left">Number of laboratories retained after eliminating outliers</td>
29
+ <th align="left">Number of laboratories retained after eliminating outliers</th>
30
30
  <td align="center">13</td>
31
31
  <td align="center">11</td>
32
32
  <td align="center">13</td>
@@ -88,7 +88,7 @@ RSpec.describe IsoDoc do
88
88
  </thead>
89
89
  <tbody>
90
90
  <tr>
91
- <th style="font-weight:bold;text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;" scope="row">Number of laboratories retained after eliminating outliers</td>
91
+ <th style="font-weight:bold;text-align:left;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;" scope="row">Number of laboratories retained after eliminating outliers</th>
92
92
  <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">13</td>
93
93
  <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">11</td>
94
94
  <td style="text-align:center;border-top:solid windowtext 1.5pt;border-bottom:solid windowtext 1.0pt;padding:0;">13</td>
@@ -138,7 +138,7 @@ RSpec.describe IsoDoc do
138
138
  end
139
139
 
140
140
  it "processes IsoXML tables (Word)" do
141
- expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
141
+ expect(xmlpp(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
142
142
  <iso-standard xmlns="http://riboseinc.com/isoxml">
143
143
  <preface>
144
144
  <foreword>
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "processes IsoXML terms" do
5
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
5
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <sections>
8
8
  <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
@@ -91,13 +91,12 @@ RSpec.describe IsoDoc do
91
91
  [/TERMREF]</p></div>
92
92
  </div>
93
93
  </body>
94
- </head>
95
94
  </html>
96
95
  OUTPUT
97
96
  end
98
97
 
99
98
  it "processes IsoXML terms (Word)" do
100
- expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
99
+ expect(xmlpp(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
101
100
  <iso-standard xmlns="http://riboseinc.com/isoxml">
102
101
  <sections>
103
102
  <terms id="_terms_and_definitions" obligation="normative"><title>Terms and Definitions</title>
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe IsoDoc do
4
4
  it "cross-references external documents in HTML" do
5
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
5
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  <iso-standard xmlns="http://riboseinc.com/isoxml">
7
7
  <preface>
8
8
  <foreword>
@@ -29,7 +29,7 @@ RSpec.describe IsoDoc do
29
29
  end
30
30
 
31
31
  it "cross-references external documents in DOC" do
32
- expect(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').sub(%r{</div>.*$}m, "</div>")).to be_equivalent_to <<~"OUTPUT"
32
+ expect(xmlpp(IsoDoc::WordConvert.new({}).convert("test", <<~"INPUT", true).sub(/^.*<div class="WordSection2">/m, '<div class="WordSection2">').sub(%r{</div>.*$}m, "</div></div>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
33
33
  <iso-standard xmlns="http://riboseinc.com/isoxml">
34
34
  <preface>
35
35
  <foreword>
@@ -47,7 +47,7 @@ RSpec.describe IsoDoc do
47
47
  <p>
48
48
  <a href="a.doc#b">a#b</a>
49
49
  </p>
50
- </div>
50
+ </div></div>
51
51
  OUTPUT
52
52
  end
53
53
 
@@ -65,7 +65,7 @@ RSpec.describe IsoDoc do
65
65
 
66
66
 
67
67
  it "cross-references notes" do
68
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
68
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
69
69
  <iso-standard xmlns="http://riboseinc.com/isoxml">
70
70
  <preface>
71
71
  <foreword>
@@ -193,7 +193,7 @@ RSpec.describe IsoDoc do
193
193
  end
194
194
 
195
195
  it "cross-references figures" do
196
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
196
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
197
197
  <iso-standard xmlns="http://riboseinc.com/isoxml">
198
198
  <preface>
199
199
  <foreword id="fwd">
@@ -202,6 +202,7 @@ RSpec.describe IsoDoc do
202
202
  <xref target="N2"/>
203
203
  <xref target="N"/>
204
204
  <xref target="note1"/>
205
+ <xref target="note3"/>
205
206
  <xref target="note2"/>
206
207
  <xref target="AN"/>
207
208
  <xref target="Anote1"/>
@@ -235,6 +236,9 @@ RSpec.describe IsoDoc do
235
236
  <figure id="note1">
236
237
  <name>Split-it-right sample divider</name>
237
238
  <image src="rice_images/rice_image1.png" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" mimetype="image/png"/>
239
+ </figure>
240
+ <figure id="note3" class="pseudocode">
241
+ <p>pseudocode</p>
238
242
  </figure>
239
243
  <figure id="note2">
240
244
  <name>Split-it-right sample divider</name>
@@ -273,6 +277,7 @@ RSpec.describe IsoDoc do
273
277
  <a href="#N2">Figure (??)</a>
274
278
  <a href="#N">Figure 2</a>
275
279
  <a href="#note1">Figure 3</a>
280
+ <a href="#note3">[note3]</a>
276
281
  <a href="#note2">Figure 4</a>
277
282
  <a href="#AN">Figure A.1</a>
278
283
  <a href="#Anote1">Figure (??)</a>
@@ -313,6 +318,9 @@ RSpec.describe IsoDoc do
313
318
 
314
319
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
315
320
  <p class="FigureTitle" style="text-align:center;">Figure 3&#160;&#8212; Split-it-right sample divider</p></div>
321
+ <div id="note3" class="pseudocode">
322
+ <p>pseudocode</p>
323
+ </div>
316
324
  <div id="note2" class="figure">
317
325
 
318
326
  <img src="rice_images/rice_image1.png" height="auto" width="auto"/>
@@ -346,7 +354,7 @@ RSpec.describe IsoDoc do
346
354
  end
347
355
 
348
356
  it "cross-references subfigures" do
349
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
357
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
350
358
  <iso-standard xmlns="http://riboseinc.com/isoxml">
351
359
  <preface>
352
360
  <foreword id="fwd">
@@ -457,7 +465,7 @@ RSpec.describe IsoDoc do
457
465
  end
458
466
 
459
467
  it "cross-references examples" do
460
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
468
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
461
469
  <iso-standard xmlns="http://riboseinc.com/isoxml">
462
470
  <preface>
463
471
  <foreword>
@@ -594,7 +602,7 @@ RSpec.describe IsoDoc do
594
602
  end
595
603
 
596
604
  it "cross-references formulae" do
597
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
605
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
598
606
  <iso-standard xmlns="http://riboseinc.com/isoxml">
599
607
  <preface>
600
608
  <foreword>
@@ -715,7 +723,7 @@ RSpec.describe IsoDoc do
715
723
  end
716
724
 
717
725
  it "cross-references requirements" do
718
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
726
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
719
727
  <iso-standard xmlns="http://riboseinc.com/isoxml">
720
728
  <preface>
721
729
  <foreword>
@@ -852,7 +860,7 @@ OUTPUT
852
860
  end
853
861
 
854
862
  it "cross-references recommendations" do
855
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
863
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
856
864
  <iso-standard xmlns="http://riboseinc.com/isoxml">
857
865
  <preface>
858
866
  <foreword>
@@ -989,7 +997,7 @@ OUTPUT
989
997
  end
990
998
 
991
999
  it "cross-references permissions" do
992
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1000
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
993
1001
  <iso-standard xmlns="http://riboseinc.com/isoxml">
994
1002
  <preface>
995
1003
  <foreword>
@@ -1126,7 +1134,7 @@ OUTPUT
1126
1134
  end
1127
1135
 
1128
1136
  it "labels and cross-references nested requirements" do
1129
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1137
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1130
1138
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1131
1139
  <preface>
1132
1140
  <foreword>
@@ -1225,7 +1233,7 @@ OUTPUT
1225
1233
 
1226
1234
 
1227
1235
  it "cross-references tables" do
1228
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1236
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1229
1237
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1230
1238
  <preface>
1231
1239
  <foreword>
@@ -1422,7 +1430,7 @@ OUTPUT
1422
1430
  end
1423
1431
 
1424
1432
  it "cross-references term notes" do
1425
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1433
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1426
1434
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1427
1435
  <preface>
1428
1436
  <foreword>
@@ -1478,7 +1486,7 @@ OUTPUT
1478
1486
  end
1479
1487
 
1480
1488
  it "cross-references sections" do
1481
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1489
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1482
1490
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1483
1491
  <preface>
1484
1492
  <foreword obligation="informative">
@@ -1647,7 +1655,7 @@ OUTPUT
1647
1655
  end
1648
1656
 
1649
1657
  it "cross-references lists" do
1650
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1658
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1651
1659
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1652
1660
  <preface>
1653
1661
  <foreword>
@@ -1778,7 +1786,7 @@ OUTPUT
1778
1786
  end
1779
1787
 
1780
1788
  it "cross-references list items" do
1781
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1789
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1782
1790
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1783
1791
  <preface>
1784
1792
  <foreword>
@@ -1909,7 +1917,7 @@ OUTPUT
1909
1917
  end
1910
1918
 
1911
1919
  it "cross-references nested list items" do
1912
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
1920
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1913
1921
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1914
1922
  <preface>
1915
1923
  <foreword>
@@ -1989,7 +1997,7 @@ OUTPUT
1989
1997
  end
1990
1998
 
1991
1999
  it "realises subsequences" do
1992
- expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
2000
+ expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
1993
2001
  <iso-standard xmlns="http://riboseinc.com/isoxml">
1994
2002
  <preface>
1995
2003
  <foreword id="fwd">
@@ -7,6 +7,7 @@ require "bundler/setup"
7
7
  require "isodoc"
8
8
  require "rspec/matchers"
9
9
  require "equivalent-xml"
10
+ require "rexml/document"
10
11
 
11
12
  RSpec.configure do |config|
12
13
  # Enable flags like --only-failures and --next-failure
@@ -20,6 +21,14 @@ RSpec.configure do |config|
20
21
  end
21
22
  end
22
23
 
24
+ def xmlpp(x)
25
+ s = ""
26
+ f = REXML::Formatters::Pretty.new(2)
27
+ f.compact = true
28
+ f.write(REXML::Document.new(x),s)
29
+ s
30
+ end
31
+
23
32
  def strip_guid(x)
24
33
  x.gsub(%r{ id="_[^"]+"}, ' id="_"').gsub(%r{ target="_[^"]+"}, ' target="_"').
25
34
  gsub(%r( href="#[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{13}"), ' href="#_"').
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-27 00:00:00.000000000 Z
11
+ date: 2019-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath