pandoc/test/command/sloppypar.md
John MacFarlane c266734448 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.)
2021-09-21 12:37:42 -07:00

3.3 KiB

% pandoc -f latex+raw_tex -t native
\begin{sloppypar}
Sequi id qui facere et incidunt ut. Et fuga ut voluptate enim qui. Odit unde magni ipsam dicta modi. Modi soluta velit est aut aut possimus.

Qui et temporibus explicabo. Esse ab ut quidem. Vel qui perspiciatis quae odio consectetur alias non sed. Quo consectetur libero omnis quos eius ad vel.
\end{sloppypar}
^D
[ Para
  [ Str "Sequi"
  , Space
  , Str "id"
  , Space
  , Str "qui"
  , Space
  , Str "facere"
  , Space
  , Str "et"
  , Space
  , Str "incidunt"
  , Space
  , Str "ut."
  , Space
  , Str "Et"
  , Space
  , Str "fuga"
  , Space
  , Str "ut"
  , Space
  , Str "voluptate"
  , Space
  , Str "enim"
  , Space
  , Str "qui."
  , Space
  , Str "Odit"
  , Space
  , Str "unde"
  , Space
  , Str "magni"
  , Space
  , Str "ipsam"
  , Space
  , Str "dicta"
  , Space
  , Str "modi."
  , Space
  , Str "Modi"
  , Space
  , Str "soluta"
  , Space
  , Str "velit"
  , Space
  , Str "est"
  , Space
  , Str "aut"
  , Space
  , Str "aut"
  , Space
  , Str "possimus."
  ]
, Para
  [ Str "Qui"
  , Space
  , Str "et"
  , Space
  , Str "temporibus"
  , Space
  , Str "explicabo."
  , Space
  , Str "Esse"
  , Space
  , Str "ab"
  , Space
  , Str "ut"
  , Space
  , Str "quidem."
  , Space
  , Str "Vel"
  , Space
  , Str "qui"
  , Space
  , Str "perspiciatis"
  , Space
  , Str "quae"
  , Space
  , Str "odio"
  , Space
  , Str "consectetur"
  , Space
  , Str "alias"
  , Space
  , Str "non"
  , Space
  , Str "sed."
  , Space
  , Str "Quo"
  , Space
  , Str "consectetur"
  , Space
  , Str "libero"
  , Space
  , Str "omnis"
  , Space
  , Str "quos"
  , Space
  , Str "eius"
  , Space
  , Str "ad"
  , Space
  , Str "vel."
  ]
]
% pandoc -f latex -t native
\begin{sloppypar}
Sequi id qui facere et incidunt ut. Et fuga ut voluptate enim qui. Odit unde magni ipsam dicta modi. Modi soluta velit est aut aut possimus.

Qui et temporibus explicabo. Esse ab ut quidem. Vel qui perspiciatis quae odio consectetur alias non sed. Quo consectetur libero omnis quos eius ad vel.
\end{sloppypar}
^D
[ Para
  [ Str "Sequi"
  , Space
  , Str "id"
  , Space
  , Str "qui"
  , Space
  , Str "facere"
  , Space
  , Str "et"
  , Space
  , Str "incidunt"
  , Space
  , Str "ut."
  , Space
  , Str "Et"
  , Space
  , Str "fuga"
  , Space
  , Str "ut"
  , Space
  , Str "voluptate"
  , Space
  , Str "enim"
  , Space
  , Str "qui."
  , Space
  , Str "Odit"
  , Space
  , Str "unde"
  , Space
  , Str "magni"
  , Space
  , Str "ipsam"
  , Space
  , Str "dicta"
  , Space
  , Str "modi."
  , Space
  , Str "Modi"
  , Space
  , Str "soluta"
  , Space
  , Str "velit"
  , Space
  , Str "est"
  , Space
  , Str "aut"
  , Space
  , Str "aut"
  , Space
  , Str "possimus."
  ]
, Para
  [ Str "Qui"
  , Space
  , Str "et"
  , Space
  , Str "temporibus"
  , Space
  , Str "explicabo."
  , Space
  , Str "Esse"
  , Space
  , Str "ab"
  , Space
  , Str "ut"
  , Space
  , Str "quidem."
  , Space
  , Str "Vel"
  , Space
  , Str "qui"
  , Space
  , Str "perspiciatis"
  , Space
  , Str "quae"
  , Space
  , Str "odio"
  , Space
  , Str "consectetur"
  , Space
  , Str "alias"
  , Space
  , Str "non"
  , Space
  , Str "sed."
  , Space
  , Str "Quo"
  , Space
  , Str "consectetur"
  , Space
  , Str "libero"
  , Space
  , Str "omnis"
  , Space
  , Str "quos"
  , Space
  , Str "eius"
  , Space
  , Str "ad"
  , Space
  , Str "vel."
  ]
]