aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-10-21 23:01:58 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-21 23:01:58 -0700
commit4625150f4caa11c99cb21969480fa044472617c7 (patch)
tree18079598d2bdb8ce18a8f0b6d5baa63a1fde3ad7 /src
parent07a083582417c57f40a6780740f0bb2de5f83d16 (diff)
downloadpandoc-4625150f4caa11c99cb21969480fa044472617c7.tar.gz
Man reader: fix code block tests.
They incorporated a spurious newline which needs to be removed.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Man.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Man.hs b/src/Text/Pandoc/Readers/Man.hs
index 48f488c92..c449590ff 100644
--- a/src/Text/Pandoc/Readers/Man.hs
+++ b/src/Text/Pandoc/Readers/Man.hs
@@ -655,6 +655,7 @@ parseCodeBlock = try $ do
removeFinalNewline [] = []
removeFinalNewline xs = if last xs == '\n' then init xs else xs
+
extractText :: ManToken -> Maybe String
extractText (MLine ss) = Just $ linePartsToString ss
extractText MEmptyLine = Just ""