spec/isodoc/blocks_spec.rb in isodoc-0.9.3 vs spec/isodoc/blocks_spec.rb in isodoc-0.9.4
- old
+ new
@@ -225,11 +225,11 @@
it "processes figures" do
expect(strip_guid(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to <<~"OUTPUT"
<iso-standard xmlns="http://riboseinc.com/isoxml">
<preface><foreword>
<figure id="figureA-1">
- <name>Split-it-right sample divider</name>
+ <name>Split-it-right <em>sample</em> divider</name>
<image src="rice_images/rice_image1.png" height="20" width="30" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
<image src="rice_images/rice_image1.png" height="20" width="auto" id="_8357ede4-6d44-4672-bac4-9a85e82ab7f0" imagetype="PNG"/>
<fn reference="a">
<p id="_ef2c85b8-5a5a-4ecd-a1e6-92acefaaa852">The time <stem type="AsciiMath">t_90</stem> was estimated to be 18,2 min for this example.</p>
</fn>
@@ -251,11 +251,11 @@
<img src="rice_images/rice_image1.png" height="20" width="auto"/>
<a href="#_" class="TableFootnoteRef">a</a><aside class="footnote"><div id="fn:_"><a id="_" class="TableFootnoteRef">a  </a>
<p id="_">The time <span class="stem">(#(t_90)#)</span> was estimated to be 18,2 min for this example.</p>
</div></aside>
<p><b>Key</b></p><dl><dt><p>A</p></dt><dd><p>B</p></dd></dl>
- <p class="FigureTitle" align="center">Figure 1 — Split-it-right sample divider</p></div>
+ <p class="FigureTitle" align="center">Figure 1 — Split-it-right <i>sample</i> divider</p></div>
</div>
<p class="zzSTDTitle1"/>
</div>
</body>
</html>
@@ -325,13 +325,13 @@
INPUT
#{HTML_HDR}
<br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
- <table id="samplecode" class="example">
+ <table id="samplecode" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tr>
- <td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE</td>
+ <td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE</td>
<td valign="top" class="example">
<p>Hello</p>
</td>
</tr>
</table>
@@ -359,21 +359,21 @@
INPUT
#{HTML_HDR}
<br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
- <table id="samplecode" class="example">
+ <table id="samplecode" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tr>
- <td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 1</td>
+ <td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 1</td>
<td valign="top" class="example">
<p>Hello</p>
</td>
</tr>
</table>
- <table id="samplecode2" class="example">
+ <table id="samplecode2" class="example" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tr>
- <td valign="top" class="example_label" style="width:82.8pt;">EXAMPLE 2</td>
+ <td valign="top" class="example_label" style="width:82.8pt;padding:0pt;margin-left:0pt">EXAMPLE 2</td>
<td valign="top" class="example">
<p>Hello</p>
</td>
</tr>
</table>
@@ -388,20 +388,20 @@
it "processes sourcecode" do
expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
<iso-standard xmlns="http://riboseinc.com/isoxml">
<preface><foreword>
<sourcecode id="samplecode">
- <name>Ruby code</name>
+ <name>Ruby <em>code</em></name>
puts x
</sourcecode>
</foreword></preface>
</iso-standard>
INPUT
#{HTML_HDR}
<br/>
<div>
<h1 class="ForewordTitle">Foreword</h1>
- <p id="samplecode" class="Sourcecode"><br/>    <br/>  puts x<br/><p class="FigureTitle" align="center">Ruby code</p></p>
+ <p id="samplecode" class="Sourcecode"><br/>    <br/>  puts x<br/><p class="FigureTitle" align="center">Ruby <i>code</i></p></p>
</div>
<p class="zzSTDTitle1"/>
</div>
</body>
</html>