git.iko.soy/typeable/pandoc
on master help sign in
Muse reader: convert alphabetical list markers to decimal in round-trip test

Alphabetical lists are an addition of Text::Amuse. They are not present in Emacs Muse and can be ambiguous when list starts with "i.", "c." etc.

commit55c4b9982c785e043b0ed9b8dd2219bdbdf61087 authorAlexander Krotov <ilabdsf@gmail.com> dateFri 2 Mar 2018, 00:32 (9 years ago) parent7d3e7a5
1 file changed+2
test/Tests/Readers/Muse.hs+2
test/Tests/Readers/Muse.hs+2
@@ -31,6 +31,8 @@ spcSep = mconcat . intersperse space
3131--
3232makeRoundTrip :: Block -> Block
3333makeRoundTrip Table{} = Para [Str "table was here"]
34+makeRoundTrip (OrderedList (start, LowerAlpha, _) items) = OrderedList (start, Decimal, Period) items
35+makeRoundTrip (OrderedList (start, UpperAlpha, _) items) = OrderedList (start, Decimal, Period) items
3436makeRoundTrip x = x
3537
3638-- Demand that any AST produced by Muse reader and written by Muse writer can be read back exactly the same way.