diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-09-06 23:59:07 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-09-07 03:48:07 -0600 |
| commit | da2ea47a94de1bc75d6eb6a10b7a2cc3b24a65aa (patch) | |
| tree | b7d5583d4db3e32577c2e640eb549ae1e748d827 /spec/formatted_text_transform_spec.rb | |
| parent | 8968da3acf75ed6eba0ac552b421abf004ab4d1e (diff) | |
use color attribute on font tag instead of color tag in psuedo-HTML and drop color tag
Diffstat (limited to 'spec/formatted_text_transform_spec.rb')
| -rw-r--r-- | spec/formatted_text_transform_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/formatted_text_transform_spec.rb b/spec/formatted_text_transform_spec.rb index ba0e31cc..8a998003 100644 --- a/spec/formatted_text_transform_spec.rb +++ b/spec/formatted_text_transform_spec.rb @@ -82,7 +82,7 @@ describe Asciidoctor::PDF::FormattedText::Transform do end it 'should create fragment with custom hex color' do - input = '<color rgb="#ff0000">red</color>' + input = '<font color="#ff0000">red</font>' parsed = parser.parse input fragments = subject.apply parsed.content (expect fragments).to have_size 1 @@ -91,7 +91,7 @@ describe Asciidoctor::PDF::FormattedText::Transform do end it 'should create fragment with custom cmyk color' do - input = '<color rgb="[50.5, 100, 0, 0]">color</color>' + input = '<font color="[50.5, 100, 0, 0]">color</font>' parsed = parser.parse input fragments = subject.apply parsed.content (expect fragments).to have_size 1 |
