diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-08-08 09:40:50 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-08-08 09:40:50 +0200 |
commit | 13280a811264690c42ac7d795efa0c702fad0b7b (patch) | |
tree | ac46a78f0a0a960e62589d54d1cdd5b049518b69 /tests | |
parent | 0fbb676c81ea258cfbfa8f1a726b37edf2bd2b90 (diff) | |
download | pandoc-13280a811264690c42ac7d795efa0c702fad0b7b.tar.gz |
Org reader: preserve indentation of verse lines
Leading spaces in verse lines are converted to non-breaking spaces, so
indentation is preserved.
This fixes #3064.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Tests/Readers/Org.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs index 1f8a8a01e..a879b0912 100644 --- a/tests/Tests/Readers/Org.hs +++ b/tests/Tests/Readers/Org.hs @@ -1440,6 +1440,14 @@ tests = ] =?> para ("foo" <> linebreak <> linebreak <> "bar") + , "Verse block with varying indentation" =: + unlines [ "#+BEGIN_VERSE" + , " hello darkness" + , "my old friend" + , "#+END_VERSE" + ] =?> + para ("\160\160hello darkness" <> linebreak <> "my old friend") + , "Raw block LaTeX" =: unlines [ "#+BEGIN_LaTeX" , "The category $\\cat{Set}$ is adhesive." |