diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-09-19 12:09:51 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-09-21 12:37:42 -0700 |
commit | c266734448544a118ed80e47deaa2590131c7f84 (patch) | |
tree | d5793b1dc732456894c96e8ee6829dab9d539388 /test/writer.texinfo | |
parent | 5f7e7f539a02818d0a94309b15d648d51d1eaee6 (diff) | |
download | pandoc-c266734448544a118ed80e47deaa2590131c7f84.tar.gz |
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.)
Diffstat (limited to 'test/writer.texinfo')
-rw-r--r-- | test/writer.texinfo | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/test/writer.texinfo b/test/writer.texinfo index 53a25d515..ca80f3245 100644 --- a/test/writer.texinfo +++ b/test/writer.texinfo @@ -732,8 +732,8 @@ Superscripts: a@sup{bc}d a@sup{@emph{hello}} a@sup{hello@ there}. Subscripts: H@sub{2}O, H@sub{23}O, H@sub{many@ of@ them}O. -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. @iftex @bigskip@hrule@bigskip @@ -1014,24 +1014,22 @@ Here is a movie @image{movie,,,movie,jpg} icon. @node Footnotes @chapter Footnotes @anchor{#footnotes} -Here is a footnote reference,@footnote{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.@footnote{Here's the long note. This one contains -multiple blocks. +Here is a footnote reference,@footnote{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.@footnote{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). @verbatim { <code> } @end verbatim -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 @emph{not} be a footnote -reference, because it contains a space.[^my note] Here is an inline -note.@footnote{This is @emph{easier} to type. Inline notes may contain -@uref{http://google.com,links} and @code{]} verbatim characters, as well as -[bracketed text].} +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 @emph{not} be a footnote reference, +because it contains a space.[^my note] Here is an inline note.@footnote{This is +@emph{easier} to type. Inline notes may contain @uref{http://google.com,links} +and @code{]} verbatim characters, as well as [bracketed text].} @quotation Notes can go in quotes.@footnote{In quote.} |