metanorma-iso 2.0.6.1 → 2.0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/asciidoctor/iso/base.rb +0 -1
  3. data/lib/asciidoctor/iso/cleanup.rb +0 -1
  4. data/lib/asciidoctor/iso/converter.rb +0 -1
  5. data/lib/asciidoctor/iso/deprecated.rb +4 -2
  6. data/lib/asciidoctor/iso/front.rb +0 -1
  7. data/lib/asciidoctor/iso/front_id.rb +0 -1
  8. data/lib/asciidoctor/iso/section.rb +0 -1
  9. data/lib/asciidoctor/iso/validate.rb +0 -1
  10. data/lib/asciidoctor/iso/validate_image.rb +0 -1
  11. data/lib/asciidoctor/iso/validate_requirements.rb +0 -1
  12. data/lib/asciidoctor/iso/validate_section.rb +0 -1
  13. data/lib/asciidoctor/iso/validate_style.rb +0 -1
  14. data/lib/asciidoctor/iso/validate_title.rb +0 -1
  15. data/lib/isodoc/iso/base_convert.rb +3 -3
  16. data/lib/isodoc/iso/html/header-dis.html +391 -0
  17. data/lib/isodoc/iso/html/html_iso_titlepage.html +2 -2
  18. data/lib/isodoc/iso/html/isodoc-dis.css +4524 -0
  19. data/lib/isodoc/iso/html/isodoc-dis.scss +4289 -0
  20. data/lib/isodoc/iso/html/word_iso_intro-dis.html +7 -0
  21. data/lib/isodoc/iso/html/word_iso_titlepage-dis.html +50 -0
  22. data/lib/isodoc/iso/html/word_iso_titlepage.html +2 -2
  23. data/lib/isodoc/iso/html/wordstyle-dis.css +2160 -0
  24. data/lib/isodoc/iso/html/wordstyle-dis.scss +2011 -0
  25. data/lib/isodoc/iso/i18n-en.yaml +1 -1
  26. data/lib/isodoc/iso/index.rb +7 -4
  27. data/lib/isodoc/iso/iso.amendment.xsl +310 -130
  28. data/lib/isodoc/iso/iso.international-standard.xsl +310 -130
  29. data/lib/isodoc/iso/metadata.rb +75 -64
  30. data/lib/isodoc/iso/presentation_xml_convert.rb +0 -2
  31. data/lib/isodoc/iso/sts_convert.rb +8 -3
  32. data/lib/isodoc/iso/word_cleanup.rb +2 -2
  33. data/lib/isodoc/iso/word_convert.rb +12 -0
  34. data/lib/isodoc/iso/xref.rb +4 -5
  35. data/lib/metanorma/iso/biblio.rng +25 -2
  36. data/lib/metanorma/iso/cleanup.rb +5 -5
  37. data/lib/metanorma/iso/front_id.rb +28 -11
  38. data/lib/metanorma/iso/version.rb +1 -1
  39. data/spec/isodoc/i18n_spec.rb +111 -114
  40. data/spec/isodoc/iso_spec.rb +42 -26
  41. data/spec/isodoc/ref_spec.rb +11 -7
  42. data/spec/metanorma/amd_spec.rb +45 -23
  43. data/spec/metanorma/base_spec.rb +8 -0
  44. data/spec/metanorma/blocks_spec.rb +4 -4
  45. data/spec/metanorma/cleanup_spec.rb +11 -11
  46. data/spec/metanorma/section_spec.rb +3 -3
  47. data/spec/spec_helper.rb +1 -1
  48. data/spec/vcr_cassettes/docrels.yml +35 -43
  49. data/spec/vcr_cassettes/withdrawn_iso.yml +26 -32
  50. metadata +9 -2
@@ -380,11 +380,7 @@ RSpec.describe IsoDoc do
380
380
  <p id="A">This is a preamble</p>
381
381
  </foreword>
382
382
  <introduction id="B" obligation="informative" displayorder='2'>
383
- <title depth="1">
384
- 0
385
- <tab/>
386
- Introduction
387
- </title>
383
+ <title depth="1">0<tab/>Introduction</title>
388
384
  <clause id="C" inline-header="false" obligation="informative">
389
385
  <title depth="2">0.1<tab/>Introduction Subsection</title>
390
386
  </clause>
@@ -1146,40 +1142,31 @@ RSpec.describe IsoDoc do
1146
1142
  <doctype language='zh'>&#x56FD;&#x9645;&#x6807;&#x51C6;</doctype>
1147
1143
  </ext>
1148
1144
  </bibdata>
1145
+
1149
1146
  <preface>
1150
1147
  <foreword obligation="informative" displayorder='1'>
1151
1148
  <title>Foreword</title>
1152
1149
  <p id="A">This is a preamble</p>
1153
1150
  </foreword>
1154
1151
  <introduction id="B" obligation="informative" displayorder='2'>
1155
- <title depth="1">0
1156
- <tab/>
1157
- Introduction</title>
1152
+ <title depth="1">0<tab/>Introduction</title>
1158
1153
  <clause id="C" inline-header="false" obligation="informative">
1159
- <title depth="2">0.1
1160
- <tab/>
1161
- Introduction Subsection</title>
1154
+ <title depth="2">0.1<tab/>Introduction Subsection</title>
1162
1155
  </clause>
1163
1156
  <p>This is patent boilerplate</p>
1164
1157
  </introduction>
1165
1158
  </preface>
1166
1159
  <sections>
1167
1160
  <clause id="D" obligation="normative" type="scope" displayorder='3'>
1168
- <title depth="1">1
1169
- <tab/>
1170
- Scope</title>
1161
+ <title depth="1">1<tab/>Scope</title>
1171
1162
  <p id="E">
1172
- <eref bibitemid="ISO712" type="inline"><locality type="table"><referenceFrom>1</referenceFrom><referenceTo>1</referenceTo></locality>ISO 712、第1–1表</eref>
1163
+ <eref bibitemid="ISO712" type="inline"><locality type="table"><referenceFrom>1</referenceFrom><referenceTo>1</referenceTo></locality>ISO 712, 第1–1表</eref>
1173
1164
  </p>
1174
1165
  </clause>
1175
1166
  <clause id="H" obligation="normative" displayorder='5'>
1176
- <title depth="1">3
1177
- <tab/>
1178
- Terms, definitions, symbols and abbreviated terms</title>
1167
+ <title depth="1">3<tab/>Terms, definitions, symbols and abbreviated terms</title>
1179
1168
  <terms id="I" obligation="normative">
1180
- <title depth="2">3.1
1181
- <tab/>
1182
- Normal Terms</title>
1169
+ <title depth="2">3.1<tab/>Normal Terms</title>
1183
1170
  <term id="J">
1184
1171
  <name>3.1.1</name>
1185
1172
  <preferred><strong>Term2</strong></preferred>
@@ -1201,18 +1188,12 @@ RSpec.describe IsoDoc do
1201
1188
  </dl>
1202
1189
  </definitions>
1203
1190
  <clause id="M" inline-header="false" obligation="normative" displayorder='7'>
1204
- <title depth="1">5
1205
- <tab/>
1206
- Clause 4</title>
1191
+ <title depth="1">5<tab/>Clause 4</title>
1207
1192
  <clause id="N" inline-header="false" obligation="normative">
1208
- <title depth="2">5.1
1209
- <tab/>
1210
- Introduction</title>
1193
+ <title depth="2">5.1<tab/>Introduction</title>
1211
1194
  </clause>
1212
1195
  <clause id="O" inline-header="false" obligation="normative">
1213
- <title depth="2">5.2
1214
- <tab/>
1215
- Clause 4.2</title>
1196
+ <title depth="2">5.2<tab/>Clause 4.2</title>
1216
1197
  </clause>
1217
1198
  </clause>
1218
1199
  </sections>
@@ -1224,26 +1205,18 @@ RSpec.describe IsoDoc do
1224
1205
  <br/>
1225
1206
  <strong>Annex</strong></title>
1226
1207
  <clause id="Q" inline-header="false" obligation="normative">
1227
- <title depth="2">A.1
1228
- <tab/>
1229
- Annex A.1</title>
1208
+ <title depth="2">A.1<tab/>Annex A.1</title>
1230
1209
  <clause id="Q1" inline-header="false" obligation="normative">
1231
- <title depth="3">A.1.1
1232
- <tab/>
1233
- Annex A.1a</title>
1210
+ <title depth="3">A.1.1<tab/>Annex A.1a</title>
1234
1211
  </clause>
1235
1212
  </clause>
1236
1213
  <appendix id="Q2" inline-header="false" obligation="normative">
1237
- <title depth="2">附录1
1238
- <tab/>
1239
- An Appendix</title>
1214
+ <title depth="2">附录1<tab/>An Appendix</title>
1240
1215
  </appendix>
1241
1216
  </annex>
1242
1217
  <bibliography>
1243
1218
  <references id="R" normative="true" obligation="informative" displayorder='4'>
1244
- <title depth="1">2
1245
- <tab/>
1246
- Normative References</title>
1219
+ <title depth="1">2<tab/>Normative References</title>
1247
1220
  <bibitem id="ISO712" type="standard">
1248
1221
  <title format="text/plain">Cereals and cereal products</title>
1249
1222
  <docidentifier>ISO 712</docidentifier>
@@ -1267,78 +1240,102 @@ RSpec.describe IsoDoc do
1267
1240
 
1268
1241
  html = <<~OUTPUT
1269
1242
  #{HTML_HDR.gsub(/"en"/, '"zh"')}
1270
- <br/>
1271
- <div>
1272
- <h1 class="ForewordTitle">Foreword</h1>
1273
- <p id="A">This is a preamble</p>
1274
- </div>
1275
- <br/>
1276
- <div class="Section3" id="B">
1277
- <h1 class="IntroTitle">0 &#12288; Introduction</h1>
1278
- <div id="C">
1279
- <h2>0.1 &#12288; Introduction Subsection</h2>
1280
- </div>
1281
- <p>This is patent boilerplate</p>
1282
- </div>
1283
- <p class="zzSTDTitle1"/>
1284
- <div id="D">
1285
- <h1>1 &#12288; Scope</h1>
1286
- <p id="E"><a href='#ISO712'>ISO 712&#12289;&#31532;1&#8211;1&#34920;</a></p>
1287
- </div>
1288
- <div>
1289
- <h1>2 &#12288; Normative References</h1>
1290
- <p id="ISO712" class="NormRef">ISO 712, <i>Cereals and cereal products</i></p>
1291
- </div>
1292
- <div id="H">
1293
- <h1>3 &#12288; Terms, definitions, symbols and abbreviated terms</h1>
1294
- <div id="I"><h2>3.1 &#12288; Normal Terms</h2>
1295
- <p class="TermNum" id="J">3.1.1</p>
1296
- <p class="Terms" style="text-align:left;"><b>Term2</b></p>
1297
- </div><div id="K">
1298
- <span class='zzMoveToFollowing'>
1299
- <b>3.2&#12288;</b>
1300
- </span>
1301
- <dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
1302
- </div></div>
1303
- <div id="L" class="Symbols">
1304
- <h1>4</h1>
1305
- <dl>
1306
- <dt>
1307
- <p>Symbol</p>
1308
- </dt>
1309
- <dd>Definition</dd>
1310
- </dl>
1311
- </div>
1312
- <div id="M">
1313
- <h1>5 &#12288; Clause 4</h1>
1314
- <div id="N">
1315
- <h2>5.1 &#12288; Introduction</h2>
1316
- </div>
1317
- <div id="O">
1318
- <h2>5.2 &#12288; Clause 4.2</h2>
1319
- </div>
1320
- </div>
1321
- <br/>
1322
- <div id="P" class="Section3">
1323
- <h1 class="Annex"><b>&#38468;&#20214;A</b><br/>&#65288;&#35268;&#33539;&#24615;&#38468;&#24405;&#65289;<br/><br/><b>Annex</b></h1>
1324
- <div id="Q">
1325
- <h2>A.1 &#12288; Annex A.1</h2>
1326
- <div id="Q1"><h3>A.1.1 &#12288; Annex A.1a</h3></div>
1327
- </div>
1328
- <div id="Q2">
1329
- <h2>&#38468;&#24405;1 &#12288; An Appendix</h2>
1330
- </div>
1331
- </div>
1332
- <br/>
1333
- <div>
1334
- <h1 class="Section3">Bibliography</h1>
1335
- <div>
1336
- <h2 class="Section3">Bibliography Subsection</h2>
1337
- </div>
1338
- </div>
1339
- </div>
1340
- </body>
1341
- </html>
1243
+ <br/>
1244
+ <div>
1245
+ <h1 class='ForewordTitle'>Foreword</h1>
1246
+ <p id='A'>This is a preamble</p>
1247
+ </div>
1248
+ <br/>
1249
+ <div class='Section3' id='B'>
1250
+ <h1 class='IntroTitle'>0 Introduction</h1>
1251
+ <div id='C'>
1252
+ <h2>0.1 Introduction Subsection</h2>
1253
+ </div>
1254
+ <p>This is patent boilerplate</p>
1255
+ </div>
1256
+ <p class='zzSTDTitle1'/>
1257
+ <div id='D'>
1258
+ <h1>1 Scope</h1>
1259
+ <p id='E'>
1260
+ <a href='#ISO712'>ISO 712, 第1–1表</a>
1261
+ </p>
1262
+ </div>
1263
+ <div>
1264
+ <h1>2 Normative References</h1>
1265
+ <p id='ISO712' class='NormRef'>
1266
+ ISO 712,
1267
+ <i>Cereals and cereal products</i>
1268
+ </p>
1269
+ </div>
1270
+ <div id='H'>
1271
+ <h1>3 Terms, definitions, symbols and abbreviated terms</h1>
1272
+ <div id='I'>
1273
+ <h2>3.1 Normal Terms</h2>
1274
+ <p class='TermNum' id='J'>3.1.1</p>
1275
+ <p class='Terms' style='text-align:left;'>
1276
+ <b>Term2</b>
1277
+ </p>
1278
+ </div>
1279
+ <div id='K'>
1280
+ <span class='zzMoveToFollowing'>
1281
+ <b>3.2 </b>
1282
+ </span>
1283
+ <dl>
1284
+ <dt>
1285
+ <p>Symbol</p>
1286
+ </dt>
1287
+ <dd>Definition</dd>
1288
+ </dl>
1289
+ </div>
1290
+ </div>
1291
+ <div id='L' class='Symbols'>
1292
+ <h1>4</h1>
1293
+ <dl>
1294
+ <dt>
1295
+ <p>Symbol</p>
1296
+ </dt>
1297
+ <dd>Definition</dd>
1298
+ </dl>
1299
+ </div>
1300
+ <div id='M'>
1301
+ <h1>5 Clause 4</h1>
1302
+ <div id='N'>
1303
+ <h2>5.1 Introduction</h2>
1304
+ </div>
1305
+ <div id='O'>
1306
+ <h2>5.2 Clause 4.2</h2>
1307
+ </div>
1308
+ </div>
1309
+ <br/>
1310
+ <div id='P' class='Section3'>
1311
+ <h1 class='Annex'>
1312
+ <b>附件A</b>
1313
+ <br/>
1314
+ (规范性附录)
1315
+ <br/>
1316
+ <br/>
1317
+ <b>Annex</b>
1318
+ </h1>
1319
+ <div id='Q'>
1320
+ <h2>A.1 Annex A.1</h2>
1321
+ <div id='Q1'>
1322
+ <h3>A.1.1 Annex A.1a</h3>
1323
+ </div>
1324
+ </div>
1325
+ <div id='Q2'>
1326
+ <h2>附录1 An Appendix</h2>
1327
+ </div>
1328
+ </div>
1329
+ <br/>
1330
+ <div>
1331
+ <h1 class='Section3'>Bibliography</h1>
1332
+ <div>
1333
+ <h2 class='Section3'>Bibliography Subsection</h2>
1334
+ </div>
1335
+ </div>
1336
+ </div>
1337
+ </body>
1338
+ </html>
1342
1339
  OUTPUT
1343
1340
  expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
1344
1341
  .convert("test", input, true))
@@ -15,9 +15,12 @@ RSpec.describe IsoDoc::Iso do
15
15
  </iso-standard>
16
16
  INPUT
17
17
  html = File.read("test.html", encoding: "utf-8")
18
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
19
- expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
20
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
18
+ expect(html)
19
+ .to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
20
+ expect(html)
21
+ .to match(%r[blockquote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
22
+ expect(html)
23
+ .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
21
24
  end
22
25
 
23
26
  it "processes isodoc as ISO: alt HTML output" do
@@ -33,27 +36,34 @@ RSpec.describe IsoDoc::Iso do
33
36
  </iso-standard>
34
37
  INPUT
35
38
  html = File.read("test.html", encoding: "utf-8")
36
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
37
- expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
38
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
39
+ expect(html)
40
+ .to match(%r[\bpre[^{]+\{[^{]+font-family: "Space Mono", monospace;]m)
41
+ expect(html)
42
+ .to match(%r[blockquote[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
43
+ expect(html)
44
+ .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Lato", sans-serif;]m)
39
45
  end
40
46
 
41
47
  it "processes isodoc as ISO: Chinese HTML output" do
42
- IsoDoc::Iso::HtmlConvert.new(script: "Hans").convert("test", <<~"INPUT", false)
43
- <iso-standard xmlns="http://riboseinc.com/isoxml">
44
- <preface>
45
- <foreword>
46
- <note>
47
- <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
48
- </note>
49
- </foreword>
50
- </preface>
51
- </iso-standard>
52
- INPUT
48
+ IsoDoc::Iso::HtmlConvert.new(script: "Hans")
49
+ .convert("test", <<~"INPUT", false)
50
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
51
+ <preface>
52
+ <foreword>
53
+ <note>
54
+ <p id="_f06fd0d1-a203-4f3d-a515-0bdba0f8d83f">These results are based on a study carried out on three different types of kernel.</p>
55
+ </note>
56
+ </foreword>
57
+ </preface>
58
+ </iso-standard>
59
+ INPUT
53
60
  html = File.read("test.html", encoding: "utf-8")
54
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
55
- expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: "Source Han Sans", serif;]m)
56
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Source Han Sans", sans-serif;]m)
61
+ expect(html)
62
+ .to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
63
+ expect(html)
64
+ .to match(%r[blockquote[^{]+\{[^{]+font-family: "Source Han Sans", serif;]m)
65
+ expect(html)
66
+ .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Source Han Sans", sans-serif;]m)
57
67
  end
58
68
 
59
69
  it "processes isodoc as ISO: user nominated fonts" do
@@ -72,9 +82,12 @@ RSpec.describe IsoDoc::Iso do
72
82
  </iso-standard>
73
83
  INPUT
74
84
  html = File.read("test.html", encoding: "utf-8")
75
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: Andale Mono;]m)
76
- expect(html).to match(%r[blockquote[^{]+\{[^{]+font-family: Zapf Chancery;]m)
77
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: Comic Sans;]m)
85
+ expect(html)
86
+ .to match(%r[\bpre[^{]+\{[^{]+font-family: Andale Mono;]m)
87
+ expect(html)
88
+ .to match(%r[blockquote[^{]+\{[^{]+font-family: Zapf Chancery;]m)
89
+ expect(html)
90
+ .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: Comic Sans;]m)
78
91
  end
79
92
 
80
93
  it "processes isodoc as ISO: Word output" do
@@ -90,9 +103,12 @@ RSpec.describe IsoDoc::Iso do
90
103
  </iso-standard>
91
104
  INPUT
92
105
  html = File.read("test.doc", encoding: "utf-8")
93
- expect(html).to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
94
- expect(html).to match(%r[Quote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
95
- expect(html).to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
106
+ expect(html)
107
+ .to match(%r[\bpre[^{]+\{[^{]+font-family: "Courier New", monospace;]m)
108
+ expect(html)
109
+ .to match(%r[Quote[^{]+\{[^{]+font-family: "Cambria", serif;]m)
110
+ expect(html)
111
+ .to match(%r[\.h2Annex[^{]+\{[^{]+font-family: "Cambria", serif;]m)
96
112
  end
97
113
 
98
114
  it "does not include IEV in references" do
@@ -272,7 +272,7 @@ RSpec.describe IsoDoc do
272
272
  </note>
273
273
  <bibitem id="ISO3696" type="standard">
274
274
  <title format="text/plain">Water for analytical laboratory use</title>
275
- <docidentifier type='metanorma-ordinal'>[1]</docidentifier>
275
+ <docidentifier type='metanorma-ordinal'>[3]</docidentifier>
276
276
  <docidentifier type="ISO">ISO 3696</docidentifier>
277
277
  <contributor>
278
278
  <role type="publisher"/>
@@ -295,7 +295,7 @@ RSpec.describe IsoDoc do
295
295
  </bibitem>
296
296
  <bibitem id="ref11">
297
297
  <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
298
- <docidentifier type='metanorma-ordinal'>[2]</docidentifier>
298
+ <docidentifier type='metanorma-ordinal'>[4]</docidentifier>
299
299
  <docidentifier type="IETF">IETF RFC 10</docidentifier>
300
300
  </bibitem>
301
301
  <bibitem id="ref12">
@@ -363,7 +363,7 @@ RSpec.describe IsoDoc do
363
363
  <p>
364
364
  <span class="note_label">NOTE</span>&#160; This is another annotation of document ISSN.</p>
365
365
  </div>
366
- <p class="Biblio" id="ISO3696">[1]&#160; ISO 3696,
366
+ <p class="Biblio" id="ISO3696">[3]&#160; ISO 3696,
367
367
  <i>Water for analytical laboratory use</i></p>
368
368
  <p class="Biblio" id="ref10">[10]&#160; <span style="font-variant:small-caps;">Standard No I.C.C 167</span>
369
369
  .
@@ -371,7 +371,7 @@ RSpec.describe IsoDoc do
371
371
  (see
372
372
  <a href="http://www.icc.or.at">http://www.icc.or.at</a>
373
373
  )</p>
374
- <p class="Biblio" id="ref11">[2]&#160; IETF RFC 10,
374
+ <p class="Biblio" id="ref11">[4]&#160; IETF RFC 10,
375
375
  <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i></p>
376
376
  <p class="Biblio" id="ref12">Citn&#160; IETF RFC 20, CitationWorks. 2019.
377
377
  <i>How to cite a reference</i>
@@ -384,8 +384,12 @@ RSpec.describe IsoDoc do
384
384
  </body>
385
385
  </html>
386
386
  OUTPUT
387
- expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({}).convert("test", input, true))
388
- .sub(%r{<localized-strings>.*</localized-strings>}m, "")).to be_equivalent_to xmlpp(presxml)
389
- expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({}).convert("test", presxml, true))).to be_equivalent_to xmlpp(html)
387
+ expect(xmlpp(IsoDoc::Iso::PresentationXMLConvert.new({})
388
+ .convert("test", input, true))
389
+ .sub(%r{<localized-strings>.*</localized-strings>}m, ""))
390
+ .to be_equivalent_to xmlpp(presxml)
391
+ expect(xmlpp(IsoDoc::Iso::HtmlConvert.new({})
392
+ .convert("test", presxml, true)))
393
+ .to be_equivalent_to xmlpp(html)
390
394
  end
391
395
  end