summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-20 21:44:39 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-20 21:44:39 -0800
commit29706ee02dcfd6f211bf3592babf627baae0a3e9 (patch)
treea10a3b55c7ba03e968e330d6005bb868b9e8cb86 /tests/Tests/Readers
parent649cfb61b85ee4c512365afada0c056c3f8b7148 (diff)
parentfabbd1aa79360dcaadf309308c83e4dab74b60b4 (diff)
Merge pull request #2646 from tarleb/org-figure-with-no-name
Prefix even empty figure names with "fig:"
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r--tests/Tests/Readers/Org.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 8e255160f..b095ac60a 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -639,11 +639,11 @@ tests =
] =?>
para (image "edward.jpg" "fig:goodguy" "A very courageous man.")
- , "Unnamed figure" =:
- unlines [ "#+caption: A great whistleblower."
- , "[[snowden.png]]"
+ , "Figure with no name" =:
+ unlines [ "#+caption: I've been through the desert on this"
+ , "[[horse.png]]"
] =?>
- para (image "snowden.png" "" "A great whistleblower.")
+ para (image "horse.png" "fig:" "I've been through the desert on this")
, "Figure with `fig:` prefix in name" =:
unlines [ "#+caption: Used as a metapher in evolutionary biology."