From 63c65c89da7fa54c96199cf88bf1769b7088c1ec Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 21 Jul 2019 23:06:17 +0200 Subject: Org reader: accept ATTR_LATEX in block attributes Attributes for LaTeX output are accepted as valid block attributes; however, their values are ignored. Fixes: #5648 --- test/Tests/Readers/Org/Block/Figure.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/Tests/Readers/Org/Block') diff --git a/test/Tests/Readers/Org/Block/Figure.hs b/test/Tests/Readers/Org/Block/Figure.hs index 2d78bbe9e..d283f71d5 100644 --- a/test/Tests/Readers/Org/Block/Figure.hs +++ b/test/Tests/Readers/Org/Block/Figure.hs @@ -54,6 +54,13 @@ tests = caption = "mah brain just explodid" in para (imageWith (mempty, mempty, kv) "lambdacat.jpg" name caption) + , "LaTeX attributes are ignored" =: + T.unlines [ "#+CAPTION: Attribute after caption" + , "#+ATTR_LATEX: :float nil" + , "[[file:test.png]]" + ] =?> + para (image "test.png" "fig:" "Attribute after caption") + , "Labelled figure" =: T.unlines [ "#+CAPTION: My figure" , "#+LABEL: fig:myfig" -- cgit v1.2.3