aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorBen Firshman <ben@firshman.co.uk>2017-10-13 16:49:00 +0300
committerBen Firshman <ben@firshman.co.uk>2017-10-17 16:42:11 +0300
commit9046dbadb1147a4d9e2b114a2afc1a0292ef7762 (patch)
treeb9d5f2b52fbbba67f2f8153f3ca0f7258b522d75 /test/Tests/Readers/LaTeX.hs
parentd73fdbf895758095f23f798dd233d36be5966f7f (diff)
downloadpandoc-9046dbadb1147a4d9e2b114a2afc1a0292ef7762.tar.gz
Latex reader: Skip spaces in image options
Diffstat (limited to 'test/Tests/Readers/LaTeX.hs')
-rw-r--r--test/Tests/Readers/LaTeX.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Tests/Readers/LaTeX.hs b/test/Tests/Readers/LaTeX.hs
index 8fedc0978..ba9b8e289 100644
--- a/test/Tests/Readers/LaTeX.hs
+++ b/test/Tests/Readers/LaTeX.hs
@@ -130,6 +130,9 @@ tests = [ testGroup "basic"
, "Image width relative to textsize" =:
"\\includegraphics[width=0.6\\textwidth]{foo.png}" =?>
para (imageWith ("", [], [("width", "60%")]) "foo.png" "" "image")
+ , "Image with options with spaces" =:
+ "\\includegraphics[width=12cm, height = 5cm]{foo.png}" =?>
+ para (imageWith ("", [], [("width", "12cm"), ("height", "5cm")]) "foo.png" "" "image")
]
, let hex = ['0'..'9']++['a'..'f'] in