From c266734448544a118ed80e47deaa2590131c7f84 Mon Sep 17 00:00:00 2001
From: John MacFarlane
Date: Sun, 19 Sep 2021 12:09:51 -0700
Subject: Use pretty-simple to format native output.
Previously we used our own homespun formatting. But this
produces over-long lines that aren't ideal for diffs in tests.
Easier to use something off-the-shelf and standard.
Closes #7580.
Performance is slower by about a factor of 10, but this isn't
really a problem because native isn't suitable as a serialization
format. (For serialization you should use json, because the reader
is so much faster than native.)
---
test/writer.jats_publishing | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
(limited to 'test/writer.jats_publishing')
diff --git a/test/writer.jats_publishing b/test/writer.jats_publishing
index e6db4172a..3d4f8ddb3 100644
--- a/test/writer.jats_publishing
+++ b/test/writer.jats_publishing
@@ -68,9 +68,9 @@ Gruber’s markdown test suite.
Paragraphs
Here’s a regular paragraph.
-
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list
- item. Because a hard-wrapped line in the middle of a paragraph looked like a
- list item.
+
In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item.
+ Because a hard-wrapped line in the middle of a paragraph looked like a list
+ item.
Here’s one with a bullet. * criminey.
There should be a hard line break
here.
@@ -634,8 +634,7 @@ These should not be escaped: \$ \\ \> \[ \{
This is strikeout.
Superscripts: abcd ahello
ahello there.
-
Subscripts: H2O, H23O,
- Hmany of themO.
+
Subscripts: H2O, H23O, Hmany of themO.
These should not be superscripts or subscripts, because of the unescaped
spaces: a^b c^d, a~b c~d.
@@ -689,8 +688,7 @@ These should not be escaped: \$ \\ \> \[ \{
ddxf(x)=limh→0f(x+h)−f(x)h
-
Here’s one that has a line break in it:
-
+
Here’s one that has a line break in it: α+ω×x2.
@@ -780,8 +778,7 @@ These should not be escaped: \$ \\ \> \[ \{
Reference
-
Foo
- bar.
+
Foo bar.
With embedded
[brackets].
b by itself
@@ -853,9 +850,8 @@ These should not be escaped: \$ \\ \> \[ \{
Footnotes
Here is a footnote reference,1 and
another.2 This should
- not be a footnote reference, because it contains a
- space.[^my note] Here is an inline
- note.3
+ not be a footnote reference, because it contains a space.[^my
+ note] Here is an inline note.3
Notes can go in quotes.4
@@ -881,12 +877,12 @@ These should not be escaped: \$ \\ \> \[ \{
{ <code> }
-
If you want, you can indent every line, but you can also be lazy and
- just indent the first line of each block.
+
If you want, you can indent every line, but you can also be lazy and just
+ indent the first line of each block.
-
This is easier to type. Inline notes
- may contain
+
This is easier to type. Inline notes may
+ contain
links
and ] verbatim characters, as well as [bracketed
text].