spec/isodoc/postproc_spec.rb in isodoc-1.0.0 vs spec/isodoc/postproc_spec.rb in isodoc-1.0.1
- old
+ new
@@ -258,12 +258,11 @@
word = File.read("test.doc").sub(/^.*<div class="WordSection3">/m, '<div class="WordSection3">').
sub(%r{<div style="mso-element:footnote-list"/>.*$}m, "")
expect(word).to be_equivalent_to <<~"OUTPUT"
<div class="WordSection3">
<p class="zzSTDTitle1"></p>
- <div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">  </span>Terms and definitions</h1><p class="MsoNormal">For the purposes of this document,
- the following terms and definitions apply.</p>
+ <div><a name="_terms_and_definitions" id="_terms_and_definitions"></a><h1>1.<span style="mso-tab-count:1">  </span>Terms and definitions</h1>
<p class="TermNum"><a name="paddy1" id="paddy1"></a>1.1.</p><p class="Terms" style="text-align:left;">paddy</p>
<p class="MsoNormal"><a name="_eb29b35e-123e-4d1c-b50b-2714d41e747f" id="_eb29b35e-123e-4d1c-b50b-2714d41e747f"></a>rice retaining its husk after threshing</p>
<p class="MsoNormal">[SOURCE: <a href="#ISO7301">ISO 7301:2011, Clause 3.1</a>, modified — The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p></div>
</div>
OUTPUT
@@ -531,15 +530,15 @@
<h2>1.2. Clause 4.2</h2>
<p>A<a rel="footnote" href="#fn:2" epub:type="footnote"><sup>2</sup></a></p>
</div>
</div>
<aside id="fn:3" class="footnote">
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a rel="footnote" href="#fn:3" epub:type="footnote" id="fnref:1">
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a rel="footnote" href="#fn:3" epub:type="footnote">
<sup>1</sup>
</a>This is a footnote.</p>
<a href="#fnref:1">↩</a></aside>
<aside id="fn:2" class="footnote">
- <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a rel="footnote" href="#fn:2" epub:type="footnote" id="fnref:2"><sup>2</sup></a>Formerly denoted as 15 % (m/m).</p>
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6"><a rel="footnote" href="#fn:2" epub:type="footnote"><sup>2</sup></a>Formerly denoted as 15 % (m/m).</p>
<a href="#fnref:2">↩</a></aside>
</main>
OUTPUT
end