aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-03-03 03:32:37 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-03-03 03:33:02 +0300
commita71a1fec69104f35b3722e423a741dc68076f3db (patch)
tree9b58508d10a626553ea1e222acd56cf8ea573ce7 /src/Text/Pandoc/Readers
parent7507117f150dd6d36835cf86ae0872b8af302af1 (diff)
downloadpandoc-a71a1fec69104f35b3722e423a741dc68076f3db.tar.gz
Muse reader: fix indentation requirements for footnote continuations
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index 8bb087629..4a9523e84 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -470,10 +470,10 @@ amuseNoteBlockUntil :: PandocMonad m
-> MuseParser m (F Blocks, a)
amuseNoteBlockUntil end = try $ do
guardEnabled Ext_amuse
- pos <- getPosition
ref <- noteMarker <* spaceChar
+ pos <- getPosition
updateState (\st -> st { museInPara = False })
- (content, e) <- listItemContentsUntil (sourceColumn pos) (fail "x") end
+ (content, e) <- listItemContentsUntil (sourceColumn pos - 1) (fail "x") end
oldnotes <- museNotes <$> getState
case M.lookup ref oldnotes of
Just _ -> logMessage $ DuplicateNoteReference ref pos