Skip to content

Commit

Permalink
Add table & comments to table-block-operator test
Browse files Browse the repository at this point in the history
  • Loading branch information
owenh000 committed Jun 28, 2021
1 parent 168b3ae commit fc133ae
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
67 changes: 67 additions & 0 deletions test/black-box-docs/table-block-operator/_oops.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<h3 id="_oops">OOPS</h3>
<div class="sect3">
<h4 id="_danger">DANGER</h4>
<div class="paragraph">
<p>This tests the use of the AsciiDoc "a" block-level styling for a single cell.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
Expand All @@ -38,6 +41,70 @@ <h4 id="_danger">DANGER</h4>
</tr>
</tbody>
</table>
<div class="paragraph">
<p>The following table from the
<a href="https://docs.asciidoctor.org/asciidoc/latest/tables/format-column-content/#use-asciidoc-block-elements-in-a-column">AsciiDoc
Language Documentation</a> uses the "a" operator for the entire first column.</p>
</div>
<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">Column with the <code>a</code> style operator applied to its specifier</th>
<th class="tableblock halign-left valign-top">Column using the default style</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="ulist">
<ul>
<li>
<p>List item 1</p>
</li>
<li>
<p>List item 2</p>
</li>
<li>
<p>List item 3</p>
</li>
</ul>
</div>
<div class="ulist">
<ul>
</ul>
</div>
<div class="paragraph nav-footer">
<p></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">* List item 1
* List item 2
* List item 3</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-python" data-lang="python">import os
print "%s" %(os.uname())</code></pre>
</div>
</div>
<div class="ulist">
<ul>
</ul>
</div>
<div class="paragraph nav-footer">
<p></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">[source,python]
----
import os
print ("%s" %(os.uname()))
----</p></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="paragraph nav-footer">
Expand Down
33 changes: 33 additions & 0 deletions test/black-box-docs/table-block-operator/table-block-operator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,42 @@

==== DANGER

This tests the use of the AsciiDoc "a" block-level styling for a single cell.

[cols=","]
|===
|abc.$\{ext} a|
* item

|===

The following table from the
link:https://docs.asciidoctor.org/asciidoc/latest/tables/format-column-content/#use-asciidoc-block-elements-in-a-column[AsciiDoc
Language Documentation] uses the "a" operator for the entire first column.

[cols="2a,2"]
|===
|Column with the `a` style operator applied to its specifier |Column using the default style

|
* List item 1
* List item 2
* List item 3
|
* List item 1
* List item 2
* List item 3

|
[source,python]
----
import os
print "%s" %(os.uname())
----
|
[source,python]
----
import os
print ("%s" %(os.uname()))
----
|===

0 comments on commit fc133ae

Please sign in to comment.