diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2023-02-17 23:03:32 +0100 |
|---|---|---|
| committer | Albert Krewinkel <albert@zeitkraut.de> | 2023-02-18 00:09:21 +0100 |
| commit | d08d1c04c54a91eceff2ad3e8cc628b730a7cc9b (patch) | |
| tree | 2ac1a95a72e96766b4f9ab407f9dad67651f3eed /test/Tests | |
| parent | da9c196e09ecd87b2d727294810357f485733be8 (diff) | |
JATS writer: include alt-text in `<graphic>`, `<inline-graphic>` elements
Closes: #8631
Diffstat (limited to 'test/Tests')
| -rw-r--r-- | test/Tests/Writers/JATS.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Tests/Writers/JATS.hs b/test/Tests/Writers/JATS.hs index 8259c644e..8571ccd1d 100644 --- a/test/Tests/Writers/JATS.hs +++ b/test/Tests/Writers/JATS.hs @@ -134,7 +134,9 @@ tests = , "containing image" =: header 1 (image "imgs/foo.jpg" "" (text "Alt text")) =?> "<sec>\n\ - \ <title><inline-graphic mimetype=\"image\" mime-subtype=\"jpeg\" xlink:href=\"imgs/foo.jpg\" /></title>\n\ + \ <title><inline-graphic mimetype=\"image\" mime-subtype=\"jpeg\" xlink:href=\"imgs/foo.jpg\">\n\ + \ <alt-text>Alt text</alt-text>\n\ + \ </inline-graphic></title>\n\ \</sec>" ] |
