summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2017-05-17 02:12:24 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2017-05-17 02:12:24 +0300
commite74bd06cc8b05c0820601cb764ddb679fc9fca77 (patch)
treef83830eec7cf56b8f6a75019335889c3c8a2d9d2
parentfbce4228a52de9bba5a30197b165afc66a5a83dc (diff)
Txt2Tags parser: newline is not indentation
space parses '\n', while spaceChar parses only ' ' and '\t'
-rw-r--r--src/Text/Pandoc/Readers/Txt2Tags.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Txt2Tags.hs b/src/Text/Pandoc/Readers/Txt2Tags.hs
index 33f785109..012ab7cb1 100644
--- a/src/Text/Pandoc/Readers/Txt2Tags.hs
+++ b/src/Text/Pandoc/Readers/Txt2Tags.hs
@@ -281,7 +281,7 @@ anyLineNewline :: T2T String
anyLineNewline = (++ "\n") <$> anyLine
indentWith :: Int -> T2T String
-indentWith n = count n space
+indentWith n = count n spaceChar
-- Table