aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Org
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-08-26 15:25:39 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-08-26 15:25:39 -0700
commit21c44da17aa62e1147fbe6d36e8dcbe3ff43dd08 (patch)
tree31ce8818641dc9dc93fd3eae878c45dd6f990018 /src/Text/Pandoc/Readers/Org
parent180f534d21ee35e574d1552a77b91dd2342e464e (diff)
downloadpandoc-21c44da17aa62e1147fbe6d36e8dcbe3ff43dd08.tar.gz
Fix inline parsing in grid table cells.
* T.P.Parsing: Change type of `setLastStrPos` so it takes a `Maybe SourcePos` rather than a `SourcePos`. [API change] * T.P.Parsing: Make `parseFromString'` and `gridTableWith` and `gridTableWith'` polymorphic in the parser state, constraining it with `HasLastStrPosition`. [API change] Closes #5708.
Diffstat (limited to 'src/Text/Pandoc/Readers/Org')
-rw-r--r--src/Text/Pandoc/Readers/Org/ParserState.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Org/ParserState.hs b/src/Text/Pandoc/Readers/Org/ParserState.hs
index aa9f2aee3..374741893 100644
--- a/src/Text/Pandoc/Readers/Org/ParserState.hs
+++ b/src/Text/Pandoc/Readers/Org/ParserState.hs
@@ -133,7 +133,7 @@ instance HasReaderOptions OrgParserState where
instance HasLastStrPosition OrgParserState where
getLastStrPos = orgStateLastStrPos
- setLastStrPos pos st = st{ orgStateLastStrPos = Just pos }
+ setLastStrPos pos st = st{ orgStateLastStrPos = pos }
instance Monad m => HasQuoteContext st (ReaderT OrgParserLocal m) where
getQuoteContext = asks orgLocalQuoteContext