summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-03-23 15:05:33 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2010-03-23 15:05:33 -0700
commit921d0f30815509af5a75979d6b61e1ff49df5f69 (patch)
treeb5e9e7501ad1ef4d88c55636883eb34baa124c3f /src
parent09ca37bd62ca953fff69b58959e398f9ec31834f (diff)
Shared: enamed stringToURI -> escapeURI.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Shared.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 0e1ace858..b9324b7e4 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Utility functions and definitions used by the various Pandoc modules.
-}
-module Text.Pandoc.Shared (
+module Text.Pandoc.Shared (
-- * List processing
splitBy,
splitByIndices,
@@ -43,7 +43,7 @@ module Text.Pandoc.Shared (
stripFirstAndLast,
camelCaseToHyphenated,
toRomanNumeral,
- stringToURI,
+ escapeURI,
wrapped,
wrapIfNeeded,
wrappedTeX,
@@ -233,8 +233,8 @@ toRomanNumeral x =
-- | Escape unicode characters in a URI. Characters that are
-- already valid in a URI, including % and ?, are left alone.
-stringToURI :: String -> String
-stringToURI = escapeURIString isAllowedInURI . encodeString
+escapeURI :: String -> String
+escapeURI = escapeURIString isAllowedInURI . encodeString
-- | Wrap inlines to line length.
wrapped :: Monad m => ([Inline] -> m Doc) -> [Inline] -> m Doc