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.muse | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'test/writer.muse') diff --git a/test/writer.muse b/test/writer.muse index d9efdddd5..2c96f6bf2 100644 --- a/test/writer.muse +++ b/test/writer.muse @@ -483,8 +483,8 @@ Superscripts: abcd a*hello* ahello there. 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. +These should not be superscripts or subscripts, because of the unescaped spaces: +a^b c^d, a~b c~d. ---- @@ -643,8 +643,7 @@ Foo [[/url/][biz]]. ** With ampersands -Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the -URL]]. +Here’s a [[http://example.com/?foo=1&bar=2][link with an ampersand in the URL]]. Here’s a link with an amersand in the link text: [[http://att.com/][AT&T]]. @@ -686,9 +685,8 @@ Here is a movie [[movie.jpg][movie]] icon. * 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] +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] Notes can go in quotes.[4] @@ -703,8 +701,8 @@ This paragraph should not be part of the note, as it is not indented. [2] Here’s the long note. This one contains multiple blocks. - Subsequent blocks are indented to show that they belong to the footnote - (as with list items). + Subsequent blocks are indented to show that they belong to the footnote (as + with list items). { } -- cgit v1.2.3