-
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): Workaround for
xml-js
dropping spaces between elements
- Loading branch information
Showing
9 changed files
with
102 additions
and
7 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
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
28 changes: 28 additions & 0 deletions
28
src/codecs/jats/__file_snapshots__/spaces-around-marks.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,28 @@ | ||
<?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 spaces around marks are retained. A regression test based on a published example</p> | ||
<list list-type="order"> | ||
<list-item> | ||
<p> | ||
<bold> | ||
<italic>Space after</italic> | ||
</bold> | ||
<italic>space before and after</italic> | ||
</p> | ||
</list-item> | ||
</list> | ||
</sec> | ||
</body> | ||
<back/> | ||
</article> |
26 changes: 26 additions & 0 deletions
26
src/codecs/jats/__file_snapshots__/spaces-around-marks.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,26 @@ | ||
type: Article | ||
content: | ||
- type: Paragraph | ||
content: | ||
- >- | ||
Test that spaces around marks are retained. A regression test based on a | ||
published example | ||
- type: List | ||
items: | ||
- type: ListItem | ||
content: | ||
- type: Paragraph | ||
content: | ||
- type: Strong | ||
content: | ||
- type: Emphasis | ||
content: | ||
- Space after | ||
- ' ' | ||
- type: Emphasis | ||
content: | ||
- space before and after | ||
- ' ' | ||
order: Ascending | ||
meta: | ||
listType: roman-lower |
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 spaces around marks are retained. A regression test based on a published example</p> | ||
<list list-type="roman-lower"> | ||
<list-item> | ||
<p><bold><italic>Space after</italic></bold> <italic>space before and after</italic> </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