summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2024-01-07 18:14:04 +0300
committerGitHub <noreply@github.com>2024-01-07 18:14:04 +0300
commit3e7fb05a39fa73c77da1f98a0d5aa3199cd62aa6 (patch)
treeffeb34cf105e1e4e0c0778980da30d0f50de24c5 /spec
parentf4159115829d804dd3276b5e5f730357c88a226a (diff)
resolves #443 escape double quotes in alt text (#455)
Diffstat (limited to 'spec')
-rw-r--r--spec/fixtures/image-dimensions/chapter.adoc2
-rw-r--r--spec/image_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/fixtures/image-dimensions/chapter.adoc b/spec/fixtures/image-dimensions/chapter.adoc
index 4080080..b645a4f 100644
--- a/spec/fixtures/image-dimensions/chapter.adoc
+++ b/spec/fixtures/image-dimensions/chapter.adoc
@@ -4,4 +4,4 @@ image::square.png[100x100,100,100]
image::square.png[50x50,50,50]
image::square.png[50x?,50]
image::square.png[25%x?,25%]
-image::square.png[invalid,25em]
+image::square.png[invalid",25em]
diff --git a/spec/image_spec.rb b/spec/image_spec.rb
index f9bd2ea..e178af8 100644
--- a/spec/image_spec.rb
+++ b/spec/image_spec.rb
@@ -78,7 +78,7 @@ describe 'Asciidoctor::Epub3::Converter - Image' do
expect(chapter.content).to include '<img src="square.png" alt="50x50" width="50" />'
expect(chapter.content).to include '<img src="square.png" alt="50x?" width="50" />'
expect(chapter.content).to include '<img src="square.png" alt="25%x?" style="width: 25%" />'
- expect(chapter.content).to include '<img src="square.png" alt="invalid" width="25em" />'
+ expect(chapter.content).to include '<img src="square.png" alt="invalid&quot;" width="25em" />'
end
# If this test fails for you, make sure you're using gepub >= 1.0.11