aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-29 19:31:50 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-29 19:31:50 +0000
commit93d202cbd1d90949e3e744bf4b81ced7be2842b6 (patch)
tree50c3544cc2b5b561f681f63d6e23a85f48d490f6 /src/Text/Pandoc
parentc860fb91174729452254f812b9cb68141fdad81d (diff)
downloadpandoc-93d202cbd1d90949e3e744bf4b81ced7be2842b6.tar.gz
Markdown reader: Use + rather than %20 for spaces in URLs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1633 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 47a3dbd55..adc41238c 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -198,7 +198,7 @@ referenceKey = try $ do
tit <- option "" referenceTitle
blanklines
endPos <- getPosition
- let newkey = (lab, (intercalate "%20" $ words $ removeTrailingSpace src, tit))
+ let newkey = (lab, (intercalate "+" $ words $ removeTrailingSpace src, tit))
st <- getState
let oldkeys = stateKeys st
updateState $ \s -> s { stateKeys = newkey : oldkeys }
@@ -1109,7 +1109,7 @@ source' = do
tit <- option "" linkTitle
skipSpaces
eof
- return (intercalate "%20" $ words $ removeTrailingSpace src, tit)
+ return (intercalate "+" $ words $ removeTrailingSpace src, tit)
linkTitle :: GenParser Char st String
linkTitle = try $ do