diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-10-02 23:11:58 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-10-02 23:11:58 +0200 |
commit | 514662e544a828e6c3904d2fec0216dc19bbcb9f (patch) | |
tree | 9cae897fbdb1b24b94dca8d729cdf8ad07a01fb0 /test/Tests | |
parent | 3e77ea4792979879a80e67f20712766e4af2fdf5 (diff) | |
download | pandoc-514662e544a828e6c3904d2fec0216dc19bbcb9f.tar.gz |
Org reader: support `\n` export option
The `\n` export option turns all newlines in the text into hard
linebreaks.
Closes #3950
Diffstat (limited to 'test/Tests')
-rw-r--r-- | test/Tests/Readers/Org.hs | 7 |
1 files changed, 7 insertions, 0 deletions
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" |