@@ -76,7 +76,7 @@ tests =
77 , "Fourth line</em>"
77 , "Fourth line</em>"
79− para "First line <em>Second line" <>
79+ para "First line\n<em>Second line" <>
80 para "Fourth line</em>"
80 para "Fourth line</em>"
82 , "Linebreak" =: "Line <br> break" =?> para ("Line" <> linebreak <> "break")
82 , "Linebreak" =: "Line <br> break" =?> para ("Line" <> linebreak <> "break")
@@ -168,12 +168,12 @@ tests =
168 T.unlines [ "First line"
168 T.unlines [ "First line"
169 , "second line."
169 , "second line."
171− para "First line second line."
171+ para "First line\nsecond line."
172 , "Indented paragraph" =:
172 , "Indented paragraph" =:
173 T.unlines [ " First line"
173 T.unlines [ " First line"
174 , "second line."
174 , "second line."
176− para "First line second line."
176+ para "First line\nsecond line."
177 -- Emacs Muse starts a blockquote on the second line.
177 -- Emacs Muse starts a blockquote on the second line.
178 -- We copy Amusewiki behavior and require a blank line to start a blockquote.
178 -- We copy Amusewiki behavior and require a blank line to start a blockquote.
179 , "Indentation in the middle of paragraph" =:
179 , "Indentation in the middle of paragraph" =:
@@ -181,7 +181,7 @@ tests =
181 , " second line"
181 , " second line"
182 , "third line"
182 , "third line"
184− para "First line second line third line"
184+ para "First line\nsecond line\nthird line"
185 , "Quote" =:
185 , "Quote" =:
186 " This is a quotation\n" =?>
186 " This is a quotation\n" =?>
187 blockQuote (para "This is a quotation")
187 blockQuote (para "This is a quotation")
@@ -189,7 +189,7 @@ tests =
189 T.unlines [ " This is a quotation"
189 T.unlines [ " This is a quotation"
190 , " with a continuation"
190 , " with a continuation"
192− blockQuote (para "This is a quotation with a continuation")
192+ blockQuote (para "This is a quotation\nwith a continuation")
193 , testGroup "Div"
193 , testGroup "Div"
194 [ "Div without id" =:
194 [ "Div without id" =:
195 "<div>Foo bar</div>" =?>
195 "<div>Foo bar</div>" =?>
@@ -359,7 +359,7 @@ tests =
359 T.unlines [ "Paragraph starts here"
359 T.unlines [ "Paragraph starts here"
360 , "#anchor and ends here."
360 , "#anchor and ends here."
362− para ("Paragraph starts here " <> spanWith ("anchor", [], []) mempty <> "and ends here.")
362+ para ("Paragraph starts here\n" <> spanWith ("anchor", [], []) mempty <> "and ends here.")
364 , testGroup "Footnotes"
364 , testGroup "Footnotes"
365 [ "Simple footnote" =:
365 [ "Simple footnote" =:
@@ -408,7 +408,7 @@ tests =
409 para (text "First footnote reference" <>
409 para (text "First footnote reference" <>
410 note (para "First footnote paragraph" <>
410 note (para "First footnote paragraph" <>
411− para "Second footnote paragraph") <>
411+ para "Second footnote\nparagraph") <>
412 text " and second footnote reference" <>
412 text " and second footnote reference" <>
413 note (para "Third footnote paragraph" <>
413 note (para "Third footnote paragraph" <>
414 para "Fourth footnote paragraph") <>
414 para "Fourth footnote paragraph") <>
@@ -597,7 +597,7 @@ tests =
598 , " - Baz"
598 , " - Baz"
600− bulletList [ para "Foo bar"
600+ bulletList [ para "Foo\nbar"
601 , para "Baz"
601 , para "Baz"
603 , "One blank line after multiline first item" =:
603 , "One blank line after multiline first item" =:
@@ -607,7 +607,7 @@ tests =
608 , " - Baz"
608 , " - Baz"
610− bulletList [ para "Foo bar"
610+ bulletList [ para "Foo\nbar"
611 , para "Baz"
611 , para "Baz"
613 , "Two blank lines after multiline first item" =:
613 , "Two blank lines after multiline first item" =:
@@ -618,7 +618,7 @@ tests =
619 , " - Baz"
619 , " - Baz"
621− bulletList [ para "Foo bar" ] <> bulletList [ para "Baz" ]
621+ bulletList [ para "Foo\nbar" ] <> bulletList [ para "Baz" ]
622 , "No blank line after list continuation" =:
622 , "No blank line after list continuation" =:
623 T.unlines
623 T.unlines
624 [ " - Foo"
624 [ " - Foo"
@@ -658,7 +658,7 @@ tests =
658 [ "First :: second"
658 [ "First :: second"
659 , "Foo :: bar"
659 , "Foo :: bar"
661− para "First :: second Foo :: bar"
661+ para "First :: second\nFoo :: bar"
662 , test emacsMuse "Emacs Muse definition list"
662 , test emacsMuse "Emacs Muse definition list"
663 (T.unlines
663 (T.unlines
664 [ "First :: second"
664 [ "First :: second"
@@ -688,7 +688,7 @@ tests =
688 , "and its continuation."
688 , "and its continuation."
689 , " Second term :: Definition of second term."
689 , " Second term :: Definition of second term."
691− definitionList [ ("First term", [ para "Definition of first term and its continuation." ])
691+ definitionList [ ("First term", [ para "Definition of first term\nand its continuation." ])
692 , ("Second term", [ para "Definition of second term." ])
692 , ("Second term", [ para "Definition of second term." ])
694 -- Emacs Muse creates two separate lists when indentation of items is different.
694 -- Emacs Muse creates two separate lists when indentation of items is different.
@@ -699,7 +699,7 @@ tests =
699 , "and its continuation."
699 , "and its continuation."
700 , " Second term :: Definition of second term."
700 , " Second term :: Definition of second term."
702− definitionList [ ("First term", [ para "Definition of first term and its continuation." ])
702+ definitionList [ ("First term", [ para "Definition of first term\nand its continuation." ])
703 , ("Second term", [ para "Definition of second term." ])
703 , ("Second term", [ para "Definition of second term." ])
705 , "Two blank lines separate definition lists" =:
705 , "Two blank lines separate definition lists" =: