Skip to content

Commit d0ea80b

Browse files
committed
Corrected stew-test, table/non-table text styles
1 parent e8eae5a commit d0ea80b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/a-od-producer/asciidoctor-od.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def h_basic_table_caption; BasicTableCaption.new(@sn, @sd) if
402402
!!(@sn =~ /^adoc_tca[ ]/) end
403403
def h_basic_header; BasicSectionHeader.new(@sn, @sd) if
404404
!!(@sn =~ /^adoc_s[ ]/) end
405-
def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if
405+
def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if
406406
!!(@sn =~ /^adoc_iq[ ]/) end
407407
def h_basic_list_caption; BasicListCaption.new(@sn, @sd) if
408408
!!(@sn =~ /^adoc_lca[ ]/) end
@@ -587,7 +587,8 @@ def h_parent_style_name
587587
['small', 'big', 'underline'].each do |unquoted_type|
588588
if !!(@snr =~ / #{unquoted_type} /)
589589
@sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_#{unquoted_type}")
590-
@sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_table_#{unquoted_type}") if !!(@snr =~ / in_cell_[0-9] /)
590+
@sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_table_#{unquoted_type}") if
591+
!!(@snr =~ / in_cell_[0-9] /) and ['small', 'big'].include? unquoted_type
591592
end
592593
end
593594
end

test/test_cases/stew/test.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Third point (not sub) continuation. For example some large paragraph, that descr
276276
[.landscape]
277277
== A Test Section 1 (landscape)
278278

279-
Example of _italic_, *bold*, ~subscript~, ^superscript^, #simply marked#, [small]#small text# [big]#big text# [underline]#underlined text# and `monospaced`.
279+
Example of _italic_, *bold*, ~subscript~, ^superscript^, #simply marked#, [small]#small text#, [big]#big text#, [underline]#underlined text#, and `monospaced`.
280280

281281
Example of inline break +
282282
next string
@@ -285,7 +285,7 @@ Example of informal table with no vertical lines.
285285

286286
[frame=topbot, grid=rows]
287287
|===
288-
|a1 a|b1 [small]#small in table#
288+
|a1 a|b1 [small]#small in table# [underline]#underlined in table#
289289
|a2 |b2
290290
|a3 |b3
291291
|a4 |b4

0 commit comments

Comments
 (0)