-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(JATS): Prepend
<list-item><label>
to first paragraph
- Loading branch information
Nokome Bentley
committed
May 26, 2023
1 parent
e51dd01
commit 7afe909
Showing
7 changed files
with
84 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/codecs/jats/__file_snapshots__/labelled-list-items.jats.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.1 20151215//EN" "JATS-archivearticle1.dtd"> | ||
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article"> | ||
<front> | ||
<article-meta> | ||
<title-group> | ||
<article-title/> | ||
</title-group> | ||
<contrib-group/> | ||
</article-meta> | ||
</front> | ||
<body> | ||
<sec> | ||
<p>Test that list-item labels do not create a new paragraph but are instead prepended to paragraph</p> | ||
<list list-type="bullet"> | ||
<list-item> | ||
<p>1) We showed that ...</p> | ||
</list-item> | ||
<list-item> | ||
<p>2) We exploited an ...</p> | ||
</list-item> | ||
<list-item> | ||
<p>3) We followed the ...</p> | ||
</list-item> | ||
</list> | ||
</sec> | ||
</body> | ||
<back/> | ||
</article> |
27 changes: 27 additions & 0 deletions
27
src/codecs/jats/__file_snapshots__/labelled-list-items.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
type: Article | ||
content: | ||
- type: Paragraph | ||
content: | ||
- >- | ||
Test that list-item labels do not create a new paragraph but are instead | ||
prepended to paragraph | ||
- type: List | ||
items: | ||
- type: ListItem | ||
content: | ||
- type: Paragraph | ||
content: | ||
- 1) We showed that ... | ||
- type: ListItem | ||
content: | ||
- type: Paragraph | ||
content: | ||
- 2) We exploited an ... | ||
- type: ListItem | ||
content: | ||
- type: Paragraph | ||
content: | ||
- 3) We followed the ... | ||
order: Unordered | ||
meta: | ||
listType: simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<article> | ||
<body> | ||
<p>Test that list-item labels do not create a new paragraph but are instead prepended to paragraph</p> | ||
<list list-type="simple"> | ||
<list-item><label>1)</label><p>We showed that ...</p></list-item> | ||
<list-item><label>2)</label><p>We exploited an ...</p></list-item> | ||
<list-item><label>3)</label><p>We followed the ...</p></list-item> | ||
</list> | ||
</body> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters