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.docbook5 | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'test/writer.docbook5') diff --git a/test/writer.docbook5 b/test/writer.docbook5 index afee571fa..dd73803aa 100644 --- a/test/writer.docbook5 +++ b/test/writer.docbook5 @@ -68,8 +68,8 @@ 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. + item. Because a hard-wrapped line in the middle of a paragraph looked like + a list item. Here’s one with a bullet. * criminey. @@ -989,19 +989,19 @@ These should not be escaped: \$ \\ \> \[ \{
Smart quotes, ellipses, dashes - Hello, said the spider. Shelob is - my name. + Hello, said the spider. Shelob is my + name. A, B, and C are letters. - Oak, elm, and beech are - names of trees. So is pine. + Oak, elm, and beech are names + of trees. So is pine. - He said, I want to go. Were you alive in - the 70’s? + He said, I want to go. Were you alive in the + 70’s? Here is some quoted code and a @@ -1266,8 +1266,7 @@ These should not be escaped: \$ \\ \> \[ \{ AT&T. - Here’s an inline - link. + Here’s an inline link. Here’s an inline link in @@ -1342,8 +1341,8 @@ or here: <http://example.com/> Here is a footnote reference, - Here is the footnote. It can go anywhere after the footnote - reference. It need not be placed at the end of the document. + Here is the footnote. It can go anywhere after the footnote reference. + It need not be placed at the end of the document. and another. @@ -1360,14 +1359,12 @@ or here: <http://example.com/> If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. - This should not be a footnote - reference, because it contains a space.[^my note] Here is an inline - note. + This should not be a footnote reference, + because it contains a space.[^my note] Here is an inline note. - This is easier to type. Inline notes may - contain links and - ] verbatim characters, as well as [bracketed - text]. + This is easier to type. Inline notes may contain + links and + ] verbatim characters, as well as [bracketed text]. -- cgit v1.2.3