Skip to content

Commit

Permalink
Merge pull request #246 from obilodeau/verse-table-cells
Browse files Browse the repository at this point in the history
Drop verse table cells and fix tests
  • Loading branch information
obilodeau authored Mar 2, 2019
2 parents f5241a1 + ff4eb9e commit d84a2fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions templates/table.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
- cell_content = cell.text
- else
- case cell.style
- when :verse, :literal
- when :literal
- cell_content = cell.text
- else
- cell_content = cell.content
Expand All @@ -35,8 +35,6 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
- case cell.style
- when :asciidoc
div=cell_content
- when :verse
.verse=cell_content
- when :literal
.literal: pre=cell_content
- when :header
Expand Down
4 changes: 2 additions & 2 deletions test/doctest/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
<p class="tableblock"><strong>Strong text</strong></p>
</td>
<td class="tableblock halign-left valign-top">
<div class="verse">Verse block</div>
<p class="tableblock">Verse block</p>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -508,7 +508,7 @@
</tr>
<tr>
<td class="tableblock halign-left valign-top">
<div class="verse">This cell contains a verse that may one day expound on the wonders of tables in an epic sonnet.</div>
<p class="tableblock">This cell contains a verse that may one day expound on the wonders of tables in an epic sonnet.</p>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit d84a2fc

Please sign in to comment.