From 514662e544a828e6c3904d2fec0216dc19bbcb9f Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 2 Oct 2017 23:11:58 +0200 Subject: Org reader: support `\n` export option The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950 --- test/Tests/Readers/Org.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Org.hs b/test/Tests/Readers/Org.hs index 0a91d9357..b714c0792 100644 --- a/test/Tests/Readers/Org.hs +++ b/test/Tests/Readers/Org.hs @@ -773,6 +773,13 @@ tests = , para "top-level section 2" ] ] + , "preserve linebreaks as hard breaks" =: + T.unlines [ "#+OPTIONS: \\n:t" + , "first" + , "second" + ] =?> + para ("first" <> linebreak <> "second") + , "disable author export" =: T.unlines [ "#+OPTIONS: author:nil" , "#+AUTHOR: ShyGuy" -- cgit v1.2.3