From ccf9889c2c5839166be4296944c45447474f2a33 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 1 Jul 2020 09:17:42 +0200 Subject: Org reader: respect tables-excluding export setting Tables can be removed from the final document with the `#+OPTION: |:nil` export setting. --- test/Tests/Readers/Org/Directive.hs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Readers/Org/Directive.hs b/test/Tests/Readers/Org/Directive.hs index e92b1bbb9..ba012a69f 100644 --- a/test/Tests/Readers/Org/Directive.hs +++ b/test/Tests/Readers/Org/Directive.hs @@ -280,6 +280,14 @@ tests = headerWith ("wichtig", mempty, mempty) 1 "Wichtig" ] + , testGroup "Option |" + [ "disable export of tables" =: + T.unlines [ "#+OPTIONS: |:nil" + , "| chair |" + ] =?> + (mempty :: Blocks) + ] + , testGroup "unknown options" [ "unknown options are ignored" =: T.unlines [ "#+OPTIONS: does-not-exist:t "] =?> -- cgit v1.2.3