aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-07-25 12:37:04 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-07-25 12:37:04 -0700
commit95570ba34c4e7675295b6eefcfcc4dac4ac720af (patch)
tree0273b7118ae94122d263923b377d4bf79cb44b9c /src/Text/Pandoc/Readers
parent335cd5de4d785f09ae1c14e961df8c4137300252 (diff)
downloadpandoc-95570ba34c4e7675295b6eefcfcc4dac4ac720af.tar.gz
Moved stateOldDashes to readerOldDashes in ReaderOptions.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Textile.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs
index 453fa5b4e..e4537f33d 100644
--- a/src/Text/Pandoc/Readers/Textile.hs
+++ b/src/Text/Pandoc/Readers/Textile.hs
@@ -71,7 +71,7 @@ readTextile :: ParserState -- ^ Parser state, including options for parser
-> String -- ^ String to parse (assuming @'\n'@ line endings)
-> Pandoc
readTextile state s =
- (readWith parseTextile) state{ stateOldDashes = True } (s ++ "\n\n")
+ (readWith parseTextile) state (s ++ "\n\n")
-- | Generate a Pandoc ADT from a textile document
@@ -79,9 +79,11 @@ parseTextile :: Parser [Char] ParserState Pandoc
parseTextile = do
-- textile allows raw HTML and does smart punctuation by default
oldOpts <- stateOptions `fmap` getState
- updateState $ \state -> state{ stateOptions = oldOpts{ readerSmart = True
- , readerParseRaw = True
- } }
+ updateState $ \state -> state{ stateOptions =
+ oldOpts{ readerSmart = True
+ , readerParseRaw = True
+ , readerOldDashes = True
+ } }
many blankline
startPos <- getPosition
-- go through once just to get list of reference keys and notes