aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Writers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-04-19 13:47:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-19 13:47:16 -0700
commit276894a2f2f7421c3470a4d50af94774ebef62d7 (patch)
tree0a063e23dc4b604076041a75ee6035bb2c626ffc /test/Tests/Writers
parentc76565bef5ecdbf1173d23b79dda59df4120cdb9 (diff)
downloadpandoc-276894a2f2f7421c3470a4d50af94774ebef62d7.tar.gz
RST writer: use more consistent indentation.
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
Diffstat (limited to 'test/Tests/Writers')
-rw-r--r--test/Tests/Writers/RST.hs18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/Tests/Writers/RST.hs b/test/Tests/Writers/RST.hs
index 64367a108..29c9328f6 100644
--- a/test/Tests/Writers/RST.hs
+++ b/test/Tests/Writers/RST.hs
@@ -24,23 +24,23 @@ tests = [ testGroup "rubrics"
para $ text "baz"])] =?>
unlines
[ "foo"
- , " .. rubric:: bar"
+ , " .. rubric:: bar"
, ""
- , " baz"]
+ , " baz"]
, "in block quote" =:
blockQuote (header 1 (text "bar")) =?>
- " .. rubric:: bar"
+ " .. rubric:: bar"
, "with id" =:
blockQuote (headerWith ("foo",[],[]) 1 (text "bar")) =?>
unlines
- [ " .. rubric:: bar"
- , " :name: foo"]
+ [ " .. rubric:: bar"
+ , " :name: foo"]
, "with id class" =:
blockQuote (headerWith ("foo",["baz"],[]) 1 (text "bar")) =?>
unlines
- [ " .. rubric:: bar"
- , " :name: foo"
- , " :class: baz"]
+ [ " .. rubric:: bar"
+ , " :name: foo"
+ , " :class: baz"]
]
, testGroup "ligatures" -- handling specific sequences of blocks
[ "a list is closed by a comment before a quote" =: -- issue 4248
@@ -50,7 +50,7 @@ tests = [ testGroup "rubrics"
, ""
, ".."
, ""
- , " quoted"]
+ , " quoted"]
]
, testGroup "inlines"
[ "are removed when empty" =: -- #4434